Skip to content

Commit 68753c6

Browse files
Update web workflow (TraceMachina#1370)
Unify the linux and macos build step and remove the resend env variable
1 parent 9600839 commit 68753c6

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/web.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,21 @@ jobs:
6969
uses: >- # v4
7070
DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41
7171
72-
- name: Test Build on Ubuntu
73-
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'pull_request'
72+
- name: Test Build
73+
if: github.event_name == 'pull_request'
7474
working-directory: web/platform
7575
run: |
7676
nix develop --impure --command bash -c "
7777
bun setup && bun docs && bun run build
7878
"
7979
80-
- name: Test Build on macOS
81-
if: matrix.os == 'macos-14' && github.event_name == 'pull_request'
82-
working-directory: web/platform
83-
run: |
84-
nix develop --impure --command bash -c "bun setup && bun run build"
85-
8680
- name: Production deployment
8781
if: matrix.os == 'ubuntu-24.04' && github.ref == 'refs/heads/main'
8882
working-directory: web/platform
8983
env:
9084
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
91-
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
9285
run: |
9386
nix develop --impure --command bash -c "
9487
bun prod --project=nativelink --org=nativelink \
9588
--token=$DENO_DEPLOY_TOKEN \
96-
--env=RESEND_API_KEY=$RESEND_API_KEY
9789
"

web/platform/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ This project requires `bun` and `deno`. The nix flake ships compatible versions.
3030
bun install
3131

3232
# Rebuild the docs reference. (Note MacOS: Use Bun & Bazel from Host)
33-
bun run docs.build
33+
bun run build.docs
3434

3535
# Generate the simple parts of the autogenerated docs.
36-
bun run docs.generate
36+
bun run generate.docs
3737

3838
# Rebuild everything. Make sure to remove the `dist` directory beforehand.
3939
bun run build

0 commit comments

Comments
 (0)