From b1c5d25739a5b748fe24edd5a7e0fd09ff7f3d78 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 11 Apr 2024 02:27:05 -0400 Subject: ci: abstract website build --- .github/build_site.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .github/build_site.sh 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 -- cgit v1.2.3