Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 9002f84

Browse files
Fix Cloudflare Pages deploy: create project before first deploy (#6)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 09aa025 commit 9002f84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ jobs:
1515
cache: npm
1616
- run: npm ci
1717
- run: npm run build
18+
- name: Create Cloudflare Pages project if needed
19+
run: npx wrangler pages project create noboxdev --production-branch main 2>/dev/null || true
20+
env:
21+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
22+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
1823
- uses: cloudflare/wrangler-action@v3
1924
with:
2025
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2126
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
22-
command: pages deploy out --project-name=noboxdev
27+
command: pages deploy out --project-name=noboxdev --commit-dirty=true

0 commit comments

Comments
 (0)