From 6f0dbb29bede88a9a229c8b644e5a92178e18848 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 3 Oct 2024 12:11:17 -0700 Subject: [PATCH] Add action to build static site archive (#45) --- .github/workflows/build-static.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-static.yml diff --git a/.github/workflows/build-static.yml b/.github/workflows/build-static.yml new file mode 100644 index 0000000..a80de5f --- /dev/null +++ b/.github/workflows/build-static.yml @@ -0,0 +1,31 @@ +name: Build static site package + +env: + NODE_VERSION: 20 + +on: + push: + branches: [main] + +jobs: + build-static: + name: Build static site + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: ${{env.NODE_VERSION}} + - name: Install yarn + run: | + corepack enable + yarn install + - name: Build static site + run: DISABLE_ALGOLIA=1 yarn build + - name: Upload static site artifact + uses: actions/upload-artifact@v4 + with: + name: static-site + path: build