Skip to content

Commit 933074a

Browse files
committed
fix: add --create-project flag for first-time Cloudflare Pages deployment
1 parent be63c4a commit 933074a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/web-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
- run: pnpm --filter @kostech/web build
3333
env:
3434
NUXT_PUBLIC_SITE_URL: https://kostech.md
35+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
36+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3537
- name: Deploy to Cloudflare Pages
36-
run: |
37-
cd apps/web
38-
npx --yes wrangler@3 pages deploy dist --project-name=kostech-web --branch=main
38+
run: pnpm --filter @kostech/web exec -- wrangler pages deploy dist --project-name=kostech-web --branch=main --create-project
3939
env:
4040
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4141
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)