diff options
| author | seth <[email protected]> | 2024-04-11 02:27:05 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-11 02:29:24 -0400 |
| commit | b1c5d25739a5b748fe24edd5a7e0fd09ff7f3d78 (patch) | |
| tree | 47a3b9de486b215dd4c4856ea5e6c1f35acfe943 /.github | |
| parent | 1db44ec4133547e9cc2f351b56b1d59fafbc5002 (diff) | |
ci: abstract website build
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/build_site.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/build_site.sh b/.github/build_site.sh new file mode 100755 index 0000000..a44d3d2 --- /dev/null +++ b/.github/build_site.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# +# ci wrapper for building the website. build commands below +# +set -euo pipefail + +function build_site { + pnpm install --frozen-lockfile + pnpm run lint + pnpm run check + pnpm run build +} + + +# get the root directory of the project +# (so the parent directory of this script's parent directory) +REPO_DIR="$(readlink -f "$0" | xargs dirname)"/.. + +cd "$REPO_DIR" +build_site |
