From 68753c663159100d7ae66bef50d00e12337c9066 Mon Sep 17 00:00:00 2001 From: Schahin Date: Fri, 27 Sep 2024 05:04:23 +0200 Subject: [PATCH] Update web workflow (#1370) Unify the linux and macos build step and remove the resend env variable --- .github/workflows/web.yaml | 12 ++---------- web/platform/README.md | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml index 7b9af6455..53df004dc 100644 --- a/.github/workflows/web.yaml +++ b/.github/workflows/web.yaml @@ -69,29 +69,21 @@ jobs: uses: >- # v4 DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41 - - name: Test Build on Ubuntu - if: matrix.os == 'ubuntu-24.04' && github.event_name == 'pull_request' + - 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: Test Build on macOS - if: matrix.os == 'macos-14' && github.event_name == 'pull_request' - working-directory: web/platform - run: | - nix develop --impure --command bash -c "bun setup && 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 }} - RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }} run: | nix develop --impure --command bash -c " bun prod --project=nativelink --org=nativelink \ --token=$DENO_DEPLOY_TOKEN \ - --env=RESEND_API_KEY=$RESEND_API_KEY " diff --git a/web/platform/README.md b/web/platform/README.md index 809726e15..99a3a3908 100644 --- a/web/platform/README.md +++ b/web/platform/README.md @@ -30,10 +30,10 @@ This project requires `bun` and `deno`. The nix flake ships compatible versions. bun install # Rebuild the docs reference. (Note MacOS: Use Bun & Bazel from Host) -bun run docs.build +bun run build.docs # Generate the simple parts of the autogenerated docs. -bun run docs.generate +bun run generate.docs # Rebuild everything. Make sure to remove the `dist` directory beforehand. bun run build