diff --git a/docs/build.sh b/docs/build.sh index c03a5916e..e3fe9a2b7 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -18,9 +18,15 @@ source ../ci/rust-version.sh npm run build echo $? -# Publish only from merge commits and release tags +eval "$(../ci/channel-info.sh)" + +# Publish only from merge commits and beta release tags if [[ -n $CI ]]; then if [[ -z $CI_PULL_REQUEST ]]; then + if [[ -n $CI_TAG ]] && [[ $CI_TAG != $BETA_CHANNEL* ]]; then + echo "not a beta tag" + exit 0 + fi ./publish-docs.sh fi fi