Skip to content

Commit 5357048

Browse files
committed
fix docs in travis-ci
1 parent 68db61b commit 5357048

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,18 @@ script:
8181
fi
8282

8383
- if [[ $TEST_TARGET == 'docs' ]]; then
84+
- if [[ -z "$TRAVIS_TAG" ]]; then
85+
DEPLOY_DIR=dev;
86+
else
87+
DEPLOY_DIR="version-$TRAVIS_TAG";
88+
fi
8489
set -e ;
8590
conda install doctr ;
8691
cp examples/Quickstart.ipynb docs/quickstart.ipynb ;
8792
pushd docs ;
8893
make clean html linkcheck ;
8994
popd ;
90-
python -m doctr deploy --sync .;
91-
python -m doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH" ;
95+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR
9296
fi
9397

9498
doctr:

0 commit comments

Comments
 (0)