blob: b4a0455b75f4fe0e35ba56151cfbd153ee5178a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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 ci
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
|