ci: add CF Workers deploy workflow + fix relay header forwarding

This commit is contained in:
MythEclipse
2026-05-08 18:58:50 +07:00
parent dfb0f5942f
commit 443ff77be9
2 changed files with 36 additions and 47 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Deploy to Cloudflare Workers
on:
push:
branches: [main, master]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
working-directory: proxy-bun
- name: Build worker
run: bun run build:worker
working-directory: proxy-bun
- name: Deploy to Cloudflare
run: bunx wrangler deploy
working-directory: proxy-bun
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}