18 lines
287 B
Bash
18 lines
287 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -ex
|
||
|
|
||
|
cd "$(dirname "$0")"
|
||
|
|
||
|
# shellcheck source=ci/env.sh
|
||
|
source ../ci/env.sh
|
||
|
|
||
|
# Build from /src into /build
|
||
|
npm run build
|
||
|
|
||
|
# Publish only from merge commits and release tags
|
||
|
if [[ -n $CI ]]; then
|
||
|
if [[ -z $CI_PULL_REQUEST ]]; then
|
||
|
./publish-docs.sh
|
||
|
fi
|
||
|
fi
|