Add presubmit to build site for each pr.

This commit is contained in:
2024-06-30 09:09:56 +12:00
parent 5d545d3dcd
commit 2c0df4bf64

23
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,23 @@
---
name: Build static site
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build with next.js
run: npm run build