From f6f4193d4d087664f200f27c6724b4153034c8d7 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 6 Feb 2021 06:59:09 +0000 Subject: [PATCH] Only publish release-tag docs on beta channel (#15158) (#15168) (cherry picked from commit 819d829c41c05686dd172c8a9cc9348c053bb892) Co-authored-by: Tyera Eulberg --- docs/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/build.sh b/docs/build.sh index c03a5916ef..e3fe9a2b76 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