Skip to content

Merge pull request #7 from boris1993/dependabot/npm_and_yarn/get-func… #14

Merge pull request #7 from boris1993/dependabot/npm_and_yarn/get-func…

Merge pull request #7 from boris1993/dependabot/npm_and_yarn/get-func… #14

name: Deploy to CloudFlare
on:
workflow_dispatch:
push:
branches: ["master"]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v2
- run: "sed -i 's/{KV_SHORT_URL_BINDING_ID}/${{ secrets.KV_SHORT_URL_BINDING_ID }}/g' wrangler.toml"
- run: "sed -i 's/{KV_SHORT_URL_MAPPING_BINDING_ID}/${{ secrets.KV_SHORT_URL_MAPPING_BINDING_ID }}/g' wrangler.toml"
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}