Skip to content

Commit abe1659

Browse files
cobra3282000claude
andcommitted
ci: auto-deploy Cloudflare Worker on index.js changes
Triggers wrangler deploy whenever index.js or wrangler.toml is pushed to main — no manual deploy step needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cde5310 commit abe1659

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy Cloudflare Worker
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'index.js'
8+
- 'wrangler.toml'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Deploy Worker
17+
uses: cloudflare/wrangler-action@v3
18+
with:
19+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)