Skip to content

Commit aa57731

Browse files
committed
deploy tag and draft
1 parent e36074c commit aa57731

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,12 @@ install:
2727

2828
script:
2929
- |
30-
if [[ -z "$TRAVIS_TAG" ]]; then
31-
DEPLOY_DIR=dev
32-
else
33-
DEPLOY_DIR="$TRAVIS_TAG"
30+
if [[ -n "$TRAVIS_TAG" ]]; then
31+
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ "$TRAVIS_TAG"
3432
fi
3533
3634
if [[ "${TRAVIS_BRANCH}" == "source" ]]; then
3735
python -m doctr deploy --branch-whitelist source --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
3836
elif [[ "${TRAVIS_BRANCH}" == "draft" ]]; then
3937
python -m doctr deploy --branch-whitelist draft --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ draft
4038
fi
41-
python -m doctr deploy --branch-whitelist draft --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ $DEPLOY_DIR

0 commit comments

Comments
 (0)