-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.46 KB
/
Copy pathdeploy-cloudflare-pages.yml
File metadata and controls
54 lines (42 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy Cloudflare Pages
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: cloudflare-pages
cancel-in-progress: false
jobs:
deploy:
name: Validate, build and deploy
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Verify deployment workflow policy
run: python3 scripts/verify_cloudflare_workflow.py .github/workflows/deploy-cloudflare-pages.yml
- name: Set up mise toolchain
uses: jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5
with:
cache: true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run quality checks
run: mise run check
- name: Verify static deployment artifact
run: python3 scripts/verify_static_build.py dist
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: pnpm exec wrangler pages deploy dist --project-name kafu
- name: Verify production site and avatar proxy
run: >-
python3 scripts/verify_production_avatar.py
https://kafu-8bd.pages.dev
--attempts 8
--delay 5