Skip to content

[Fix] 🐛 Init Error on CodeSandbox #70

[Fix] 🐛 Init Error on CodeSandbox

[Fix] 🐛 Init Error on CodeSandbox #70

name: Cloudflare Worker Deploy
on:
push:
branches:
- master
repository_dispatch:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/[email protected]
with:
run_install: true
version: 9
- name: Build
run: pnpm run build-worker
- name: Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: 'deploy --keep-vars'