Skip to content

Enable Workers Logs #50

Enable Workers Logs

Enable Workers Logs #50

name: Deploy to CloudFlare
on:
workflow_dispatch:
push:
branches: ["master"]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- 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/wrangler-action@v3.13.1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}