Skip to content

Commit 3b3a3ee

Browse files
committed
ci: deploy Cloudflare Pages on main branch pushes
- Trigger on push to main (production) and PRs (preview) - Add VITE_CLOUDFLARE_GIT_COMMIT_SHA env var - branch ref is auto-mapped: main→production, others→preview
1 parent 831108c commit 3b3a3ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/cloudflare-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- feat/cloudflare-pages-deploy
7+
- main
88

99
concurrency:
1010
group: cloudflare-${{ github.ref }}
@@ -28,6 +28,7 @@ jobs:
2828
- name: Build the app
2929
run: pnpm build
3030
env:
31+
VITE_CLOUDFLARE_GIT_COMMIT_SHA: ${{ github.sha }}
3132
VITE_VERCEL_GIT_COMMIT_SHA: ${{ github.sha }}
3233

3334
- name: Deploy to Cloudflare Pages

0 commit comments

Comments
 (0)