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 8, 2023
1 parent fcb6876 commit 4a6c72c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "main" ]

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

steps:
Expand All @@ -19,3 +19,18 @@ jobs:
npm install
command: deploy
workingDirectory: worker

pages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Deploy Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.API_TOKEN }}
preCommands: |
npm install
npx @cloudflare/next-on-pages
command: pages deploy .vercel/output/static

0 comments on commit 4a6c72c

Please sign in to comment.