Skip to content

Commit be63c4a

Browse files
committed
fix: separate build and deploy into distinct steps with direct npx wrangler
1 parent 970ba9d commit be63c4a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/web-deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ jobs:
2929
node-version: 22
3030
cache: pnpm
3131
- run: pnpm install --frozen-lockfile
32-
- name: Build & Deploy to Cloudflare Pages
32+
- run: pnpm --filter @kostech/web build
33+
env:
34+
NUXT_PUBLIC_SITE_URL: https://kostech.md
35+
- name: Deploy to Cloudflare Pages
3336
run: |
3437
cd apps/web
35-
pnpm build
36-
pnpm exec wrangler pages deploy dist --project-name=kostech-web --branch=main
38+
npx --yes wrangler@3 pages deploy dist --project-name=kostech-web --branch=main
3739
env:
38-
NUXT_PUBLIC_SITE_URL: https://kostech.md
3940
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4041
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)