-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 867 Bytes
/
deploy.yml
File metadata and controls
41 lines (32 loc) · 867 Bytes
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
name: Deploy to Cloudflare Workers
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: deploy-workers
cancel-in-progress: true
jobs:
deploy:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install d2
run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Install deps
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Deploy (Wrangler Action)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy