-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.03 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy
on:
workflow_dispatch:
push:
branches: [main]
defaults:
run:
shell: bash
env:
CARGO_TERM_COLOR: always
ACTIONS_RUNNER_DEBUG: true
jobs:
deploy-worker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- uses: Swatinem/[email protected]
- name: Build shared
working-directory: shared
run: cargo build --release
- name: Build worker
run: cargo build --release
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install Dependencies
run: |
bun install
bun add --global wrangler@latest
- name: Deploy Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: wrangler deploy