Skip to content

Commit f0c0712

Browse files
deepracticexcclaude
andcommitted
fix(ci): auto-create Pages project before deploy
wrangler pages deploy doesn't auto-create projects in newer versions. Add explicit project creation step. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 484f980 commit f0c0712

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-storybook.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ jobs:
4141
env:
4242
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4343
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
44-
run: npx wrangler pages deploy apps/storybook/storybook-static --project-name=uix
44+
run: |
45+
# Create project if not exists (ignore error if already exists)
46+
npx wrangler pages project create uix --production-branch=main 2>/dev/null || true
47+
# Deploy
48+
npx wrangler pages deploy apps/storybook/storybook-static --project-name=uix

0 commit comments

Comments
 (0)