Skip to content

deploy

deploy #23

Workflow file for this run

name: Deploy to Cloudflare Workers
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Generate wrangler.toml
run: |

Check failure on line 24 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Deploy to Cloudflare Workers

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 24, Col: 14): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
sed -e 's/$USERNAME/${{ secrets.USERNAME || 'default_username' }}/g' \
-e 's/$PASSWORD/${{ secrets.PASSWORD || 'default_g' \
-e 's/$BUCKET_NAME/${{ secrets.BUCKET_NAME || 'default_bucket_name' }}/g' \
wrangler.toml.template > wrangler.toml
cat wrangler.toml
- name: Publish to Cloudflare Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}