Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lyc8503 authored Nov 16, 2023
1 parent 31bf1e5 commit 83cd450
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:
branches: ['main']

jobs:
build:
build-page:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
Expand All @@ -19,6 +18,27 @@ jobs:
- name: Install packages
run: |
npm install
- name: Build Page
run: |
npx @cloudflare/next-on-pages
build-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- name: Install packages
run: |
cd worker
npm install
cd ..
- name: Build worker
run: |
cd worker
npx wrangler deploy src/index.ts --outdir dist --dry-run

0 comments on commit 83cd450

Please sign in to comment.