-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudflare.yml
More file actions
40 lines (36 loc) · 1.02 KB
/
Copy pathcloudflare.yml
File metadata and controls
40 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Cloudflare preview parity
on:
pull_request:
permissions:
contents: read
concurrency:
group: cloudflare-preview-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
- name: Deploy the preview
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: >-
pages deploy dist
--project-name=YOUR_PROJECT_NAME
--branch=${{ github.head_ref }}
- uses: loke-dev/deployproof@v0.3.0
with:
preview: ${{ steps.deploy.outputs.deployment-url }}
production: ${{ vars.PRODUCTION_URL }}
config: deployproof.config.json
strict: true