Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(internal/kokoro): make publish_docs VERSION optional #2979

Merged
merged 2 commits into from Oct 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions internal/kokoro/publish_docs.sh
Expand Up @@ -19,6 +19,11 @@ set -eo pipefail
# Display commands being run.
set -x

if [ -z "$MODULE" ] ; then
echo "Must set the MODULE environment variables"
exit 1
fi

python3 -m pip install --upgrade pip
# Workaround for six 1.15 incompatibility issue.
python3 -m pip install --use-feature=2020-resolver "gcp-docuploader<2019.0.0"
Expand All @@ -27,9 +32,8 @@ cd github/google-cloud-go/internal/godocfx
go install
cd -

if [ -z "$MODULE" ] || [ -z "$VERSION" ] ; then
echo "Must set the MODULE and VERSION environment variables"
exit 1
if [ -z "$VERSION" ] ; then
VERSION="latest"
fi

cd $(mktemp -d)
Expand Down