solana-program-library/docs/build.sh

18 lines
287 B
Bash
Executable File

#!/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