-
Notifications
You must be signed in to change notification settings - Fork 207
66 lines (59 loc) · 1.53 KB
/
web.yaml
File metadata and controls
66 lines (59 loc) · 1.53 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: Deploy NativeLink Web
on:
push:
branches: [main]
paths:
- 'web/platform/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
- '**/*.lock'
- '**/*.nix'
pull_request:
branches: [main]
paths:
- 'web/platform/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
- '**/*.lock'
- '**/*.nix'
permissions: read-all
jobs:
deploy:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-15
name: Web Platform Deployment / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
environment: production
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: >- # v4.2.2
actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Prepare Worker
uses: ./.github/actions/prepare-nix
- name: Test Build
if: github.event_name == 'pull_request'
working-directory: web/platform
run: |
nix develop --impure --command bash -c "
bun setup && bun docs && bun run build
"
- name: Production deployment
if: matrix.os == 'ubuntu-24.04' && github.ref == 'refs/heads/main'
working-directory: web/platform
env:
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
run: |
nix develop --impure --command bash -c "
bun prod --project=nativelink --org=nativelink \
--token=$DENO_DEPLOY_TOKEN \
"