summaryrefslogtreecommitdiff
path: root/olamic-run
blob: 20a745f0212e385192756c2f5f0f2806d21bc67d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# vim: set ft=bash :

make

if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then
    INSTALL_DIR=/srv/olamic/artifacts/toycpu/"${BASH_REMATCH[1]}"
fi

if [[ "${INSTALL_DIR:-}" != "" ]]; then
    mkdir -p "${INSTALL_DIR}"
    git archive -o "${INSTALL_DIR}/toycpu.zip" @
fi