ci: add deploy workflow

This commit is contained in:
2026-03-14 18:21:12 -05:00
parent d7e4690ed5
commit 2855c1fd6c

View File

@@ -0,0 +1,20 @@
name: Deploy Worker
on:
push:
branches: [main]
paths:
- 'src/**'
- 'wrangler.toml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install wrangler
- run: npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}