fix(ci): add wrangler config and upgrade to v4.45.3

- 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.
This commit is contained in:
kaitranntt committed 2025-11-02 20:33:55 -05:00
1 parent e9eb215d1f
commit edc89c4a12
2 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -5,6 +5,7 @@ on:
branches: [main]
paths:
- 'scripts/worker.js'
- 'scripts/wrangler.toml'
- 'installers/**'
# Allow manual trigger
@@ -25,4 +26,5 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: scripts
command: deploy worker.js --name ccs-installer
wranglerVersion: "4.45.3"
command: deploy
+7
View File
@@ -0,0 +1,7 @@
name = "ccs-installer"
main = "worker.js"
compatibility_date = "2025-11-02"
workers_dev = true
# CloudFlare Worker configuration for CCS installer
# This worker serves platform-specific installation scripts