-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 948 Bytes
/
deploy.yml
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
name: Deploy
on:
push:
branches: main
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
# https://github.com/oven-sh/setup-bun/issues/37#issuecomment-2256820622
uses: oven-sh/setup-bun@feat/implement-wildcard-resolution-into-the-action
with:
bun-version: 1.0.x
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
precommands: bun run build
command: >
deploy ./build/index.js
--name link-pulsate-dev --compatibility-date "2022-04-05"