Skip to content

Commit 3d52b86

Browse files
committed
Fix publication of released version docs
1 parent 8d6abc1 commit 3d52b86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.ci/travis-publish-docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ make htmldocs
1919
git config --global user.email "[email protected]"
2020
git config --global user.name "Travis CI"
2121

22+
PACKAGE_VERSION=$(python ".ci/package-version.py")
2223
REPO=$(git config remote.origin.url)
2324
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
2425
COMMITISH=$(git rev-parse --verify HEAD)
@@ -29,7 +30,7 @@ cd docs/gh-pages
2930
git checkout "${TARGET_BRANCH}" || git checkout --orphan "${TARGET_BRANCH}"
3031
cd ..
3132

32-
if [ -z "${TRAVIS_TAG}" ]; then
33+
if [[ ${PACKAGE_VERSION} = *"dev"* ]]; then
3334
VERSION="devel"
3435
else
3536
VERSION="current"

0 commit comments

Comments
 (0)