File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,22 @@ function cleanSubmodule () {
4545}
4646
4747# Run this to verifiy that the docs build successfully.
48- buildDocs $TRAVIS_BRANCH
48+ if [[ ! -z ${TRAVIS_TAG} ]]; then
49+ DOC_VERSION = ${TRAVIS_TAG}
50+ else
51+ DOC_VERSION = ${TRAVIS_BRANCH}
52+ fi
53+
54+ buildDocs ${DOC_VERSION}
4955
5056if [ " ${TRAVIS_BRANCH} " == " master" ] && [ " ${TRAVIS_PULL_REQUEST} " == " false" ]; then
51- buildDocs $TRAVIS_BRANCH
52- pushDocs $TRAVIS_BRANCH
57+ pushDocs ${DOC_VERSION}
5358 cleanSubmodule
5459 echo " Done pushing docsite. See: https://googlecloudplatform.github.io/gcloud-python/"
5560fi
5661
57- if [[ ! -z $TRAVIS_TAG ]]; then
58- buildDocs $TRAVIS_TAG
59- pushDocs $TRAVIS_TAG
62+ if [[ ! -z ${TRAVIS_TAG} ]]; then
63+ pushDocs ${DOC_VERSION}
6064 cleanSubmodule
6165 echo " Done pushing docsite. See: https://googlecloudplatform.github.io/gcloud-python/"
6266fi
You can’t perform that action at this time.
0 commit comments