Add deployment CF Action
This commit is contained in:
parent
5718c72b95
commit
26f2ad3e49
2 changed files with 18 additions and 1 deletions
17
.github/workflows/cloudflare-workers.yml
vendored
Normal file
17
.github/workflows/cloudflare-workers.yml
vendored
Normal 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 }}
|
||||||
|
|
@ -3,7 +3,7 @@ type = "javascript"
|
||||||
|
|
||||||
# Change these!!
|
# Change these!!
|
||||||
account_id = "ece1d09b06af2ced51407c97505ea0cc"
|
account_id = "ece1d09b06af2ced51407c97505ea0cc"
|
||||||
zone_id = "e2eabc0f0319355c842fd443ad480ade"
|
zone_id = "f0af03c025f4c50c50e71ed4e08dd754"
|
||||||
kv_namespaces = [ { binding = "kv", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }]
|
kv_namespaces = [ { binding = "kv", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }]
|
||||||
|
|
||||||
# Remove or comment out the route line if using workers_dev
|
# Remove or comment out the route line if using workers_dev
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue