Skip to content

Update deploy.yml

Update deploy.yml #7

Workflow file for this run

name: Deploy to Cloudflare
on:
push:
branches: [ "main" ]
jobs:
worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.API_TOKEN }}
preCommands: |
npm install --loglevel verbose
command: deploy
workingDirectory: worker
page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.API_TOKEN }}
preCommands: |
npm install
npx @cloudflare/next-on-pages
command: pages deploy .vercel/output/static