Add deployment CF Action

This commit is contained in:
Erisa A 2021-07-06 10:57:05 +01:00
parent 5718c72b95
commit 26f2ad3e49
No known key found for this signature in database
GPG key ID: D581704D7FC37F30
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
name: Deploy to Cloudflare Workers
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v2
- name: Publish
uses: cloudflare/wrangler-action@1.3.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}

View file

@ -3,7 +3,7 @@ type = "javascript"
# Change these!!
account_id = "ece1d09b06af2ced51407c97505ea0cc"
zone_id = "e2eabc0f0319355c842fd443ad480ade"
zone_id = "f0af03c025f4c50c50e71ed4e08dd754"
kv_namespaces = [ { binding = "kv", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }]
# Remove or comment out the route line if using workers_dev