Skip to content

Commit 594259c

Browse files
committed
simplify if-clause
1 parent 4aa5538 commit 594259c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ script:
2929
- |
3030
set -e
3131
if [[ -z "$TRAVIS_TAG" ]]; then
32-
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ dev
32+
DEPLOY_DIR=dev
3333
else
34-
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ "version-$TRAVIS_TAG"
35-
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
34+
DEPLOY_DIR="version-$TRAVIS_TAG"
3635
fi
36+
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ $DEPLOY_DIR
37+
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
3738
3839
doctr:
3940
require-master: true

0 commit comments

Comments
 (0)