Skip to content

Update deploy.yml

Update deploy.yml #15

Workflow file for this run

name: Deploy to Cloudflare
on:
push:
branches: [ "main" ]
jobs:
worker:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Npm Install
run: |
cd worker
npm install
- name: Deploy Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.API_TOKEN }}
command: deploy
workingDirectory: worker
page:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Npm Install
run: |
npm install
- name: Deploy Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.API_TOKEN }}
preCommands: |
npx @cloudflare/next-on-pages
command: pages deploy .vercel/output/static