Add action to build static site archive (#45)

This commit is contained in:
Evan Simkowitz
2024-10-03 12:11:17 -07:00
committed by GitHub
parent 02e323ff89
commit 6f0dbb29be
+31
View File
@@ -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