diff options
Diffstat (limited to '.github/build_site.sh')
| -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 |
