Skip to content

[Fix] 🐛 Cloudflare Worker Deploy Error #64

[Fix] 🐛 Cloudflare Worker Deploy Error

[Fix] 🐛 Cloudflare Worker Deploy Error #64

name: Cloudfalre 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 Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Build
run: |
npm install && \
npm 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 --no-bundle'