-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.04 KB
/
Copy pathdeploy.yml
File metadata and controls
45 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Deploy Cloudflare Worker
on:
push:
branches: [main]
paths:
- "workers/**"
- "wrangler.supabase.toml"
- ".github/workflows/deploy.yml"
# Prevent concurrent deploys — only one at a time, never cancel mid-deploy
concurrency:
group: deploy-worker
cancel-in-progress: false
jobs:
deploy:
name: Deploy Supabase Worker
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Deploy worker to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --config wrangler.supabase.toml