Copy and paste for deploying cloudflare workers on github
修改如下文件:
- .github\workflows\deploy.yaml
branches, "worker.js" - .github\workflows\stage.yaml
branches, "worker.js" - .github\workflows\sync.yaml
upstream_sync_repo, upstream_sync_branch, target_sync_branch - wrangler.toml
name, routes - Actions secrets and variables > Repository secrets > add
CF_ACCOUNT_ID, CF_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN
Modify the following files:
- .github\workflows\deploy.yaml
branches, "worker.js" - .github\workflows\stage.yaml
branches, "worker.js" - .github\workflows\sync.yaml
upstream_sync_repo, upstream_sync_branch, target_sync_branch - wrangler.toml
name, routes - Actions secrets and variables > Repository secrets > add
CF_ACCOUNT_ID, CF_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN