Skip to content

Commit 66193af

Browse files
committed
ci: add GitHub Actions workflow for Cloudflare Workers deploy
Auto-deploy on push to main via wrangler.
1 parent b9dcf1b commit 66193af

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy to Cloudflare Workers
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: npm
18+
19+
- run: npm ci
20+
21+
- run: npx wrangler deploy
22+
env:
23+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "gameframex-upm-cloudflare-worker"
1+
name = "gameframex-upm-registry"
22
main = "src/index.ts"
33
compatibility_date = "2026-05-25"
44
workers_dev = true

0 commit comments

Comments
 (0)