Skip to content

Commit 6062b4b

Browse files
committed
Update
1 parent 1f73b04 commit 6062b4b

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
78
jobs:
89
deploy:
910
permissions:
@@ -29,11 +30,6 @@ jobs:
2930
- name: Build Docs Website
3031
run: mkdocs build
3132

32-
# - uses: actions/setup-node@v4
33-
# with:
34-
# node_version: 20
35-
# - run: npm ci
36-
# run: npm run build
3733
- name: Deploy to Cloudflare Pages
3834
uses: andykenward/github-actions-cloudflare-pages@v3.0.0
3935
id: pages

.github/workflows/pr-preview-deploy.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@
44
# not workflow_run, so previews use wrangler directly (same pattern as Cloudflare docs).
55
name: PR Preview Deploy
66
on:
7-
workflow_run:
8-
workflows:
9-
- PR Preview Validate
10-
types:
11-
- completed
7+
pull_request_target:
8+
branches:
9+
- main
1210

1311
jobs:
1412
deploy:
15-
# workflow_run has no github.event.pull_request; pull_requests[0].number matches
16-
# github.event.pull_request.number from the PR Preview Validate run.
17-
if: >-
18-
github.event.workflow_run.conclusion == 'success' &&
19-
github.event.workflow_run.event == 'pull_request' &&
20-
github.event.workflow_run.pull_requests[0].number != null
2113
runs-on: ubuntu-latest
2214
timeout-minutes: 5
2315
environment: Cloudflare Pages
@@ -31,7 +23,7 @@ jobs:
3123
- uses: actions/checkout@v4
3224
with:
3325
repository: ${{ github.event.workflow_run.head_repository.full_name || github.repository }}
34-
ref: ${{ github.event.workflow_run.head_sha }}
26+
ref: ${{ github.event.pull_request.head.sha }}
3527
fetch-depth: 0
3628
- uses: actions/setup-python@v6
3729
with:

0 commit comments

Comments
 (0)