summaryrefslogtreecommitdiff
path: root/.github/build_site.sh
blob: bc1df9e2098e66bebaddb84db272c549a5f2b490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
#
# ci wrapper for building the website. build commands below
#
set -euo pipefail

function build_site {
    asdf plugin add zola https://github.com/salasrod/asdf-zola
    asdf install zola 0.17.2
    asdf global zola 0.17.2
    zola build --output-dir dist
}


# 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