mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 18:16:08 +00:00
- Add wrangler.toml with compatibility_date to fix CI deployment - Upgrade Wrangler from v3.90.0 to v4.45.3 - Simplify deploy command to use config file - Add wrangler.toml to workflow trigger paths Fixes CloudFlare Worker deployment failure due to missing compatibility_date parameter.
31 lines
673 B
YAML
31 lines
673 B
YAML
name: Deploy CCS CloudFlare Worker
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'scripts/worker.js'
|
|
- 'scripts/wrangler.toml'
|
|
- 'installers/**'
|
|
|
|
# Allow manual trigger
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy ccs-installer to CloudFlare
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy Worker
|
|
uses: cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
workingDirectory: scripts
|
|
wranglerVersion: "4.45.3"
|
|
command: deploy
|