Skip to content

Commit

Permalink
deploy tag and draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 2, 2020
1 parent e36074c commit aa57731
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ install:

script:
- |
if [[ -z "$TRAVIS_TAG" ]]; then
DEPLOY_DIR=dev
else
DEPLOY_DIR="$TRAVIS_TAG"
if [[ -n "$TRAVIS_TAG" ]]; then
python -m doctr deploy --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ "$TRAVIS_TAG"
fi
if [[ "${TRAVIS_BRANCH}" == "source" ]]; then
python -m doctr deploy --branch-whitelist source --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
elif [[ "${TRAVIS_BRANCH}" == "draft" ]]; then
python -m doctr deploy --branch-whitelist draft --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ draft
fi
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 comments on commit aa57731

Please sign in to comment.