Only publish release-tag docs on beta channel (#15158)

This commit is contained in:
Tyera Eulberg 2021-02-05 23:39:04 -07:00 committed by GitHub
parent af7e799147
commit 819d829c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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