Skip to content

Commit e4624db

Browse files
committed
fix(ci): restore @opennextjs/cloudflare build step
1 parent 8008391 commit e4624db

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ jobs:
3737
- name: Build Wasm Assets
3838
run: npm run build:wasm-assets
3939

40-
- name: Deploy Frontend
41-
run: npm run deploy:cf
42-
env:
43-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
44-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40+
- name: Build Next.js application
41+
run: npx @opennextjs/cloudflare build
42+
43+
- name: Deploy Next.js to Cloudflare Pages
44+
uses: cloudflare/wrangler-action@v3
45+
with:
46+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
47+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48+
command: pages deploy .open-next --project-name=rgou-main --branch=main
4549

4650
- name: Deploy AI Worker to Cloudflare Workers
4751
run: npm run deploy:worker

0 commit comments

Comments
 (0)