deploy.sh 406 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. set -eo pipefail
  3. cd "$(dirname "$0")"
  4. # shellcheck source=ci/env.sh
  5. source ../ci/env.sh
  6. # Publish only from merge commits and beta release tags
  7. if [[ -n $CI ]]; then
  8. if [[ -z $CI_PULL_REQUEST ]]; then
  9. eval "$(../ci/channel-info.sh)"
  10. if [[ -n $CI_TAG ]] && [[ $CI_TAG != $BETA_CHANNEL* ]]; then
  11. echo "not a beta tag"
  12. exit 0
  13. fi
  14. ./publish-docs.sh
  15. fi
  16. fi