-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate docs buildsystem from pnpm to bun (#1268)
Fixes #1082
- Loading branch information
1 parent
59020f1
commit ef3a8a6
Showing
28 changed files
with
1,016 additions
and
7,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,5 @@ quantiles | |
Config | ||
Grafana | ||
GitHub | ||
Deno | ||
shipstorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
name: Deploy NativeLink Docs | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
deploy: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-24.04, macos-14 ] | ||
name: Docs Deployment / ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: >- # v4.1.1 | ||
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Install Nix | ||
uses: >- # v10 | ||
DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563 | ||
- name: Cache Nix derivations | ||
uses: >- # v4 | ||
DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41 | ||
- name: Test deployment on Ubuntu | ||
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'pull_request' | ||
working-directory: docs | ||
run: | | ||
nix develop --impure --command bash -c " | ||
bun staging --project=nativelink-docs --org=nativelink | ||
" | ||
- name: Test deployment on macOS | ||
if: matrix.os == 'macos-14' && github.event_name == 'pull_request' | ||
working-directory: docs | ||
run: | | ||
nix develop --impure --command bash -c "bun setup && bun run build" | ||
- name: Production deployment | ||
if: matrix.os == 'ubuntu-22.04' && github.ref == 'refs/heads/main' | ||
working-directory: docs | ||
run: | | ||
nix develop --impure --command bash -c " | ||
bun prod --project=nativelink-docs --org=nativelink | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.