File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,18 +19,23 @@ before_install:
1919 conda config --set channel_priority strict
2020 conda create --name TEST python=3 rb-bundler compilers doctr
2121 source activate TEST
22+ rm -f miniconda.sh
2223 bundle install
2324
2425install :
2526 - bundle exec jekyll build --verbose
2627
2728script :
2829 - |
29- set -e
3030 if [[ -z "$TRAVIS_TAG" ]]; then
3131 DEPLOY_DIR=dev
3232 else
3333 DEPLOY_DIR="$TRAVIS_TAG"
3434 fi
35- python -m doctr deploy --branch-whitelist source --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ $DEPLOY_DIR
36- python -m doctr deploy --branch-whitelist source --build-tags --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
35+
36+ if [[ "${TRAVIS_BRANCH}" == "source" ]]; then
37+ python -m doctr deploy --branch-whitelist source --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ .
38+ elif [[ "${TRAVIS_BRANCH}" == "draft" ]]; then
39+ python -m doctr deploy --branch-whitelist draft --key-path github_deploy_key_oceanhackweek_oceanhackweek_github_io.enc --built-docs _site/ draft
40+ 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
You can’t perform that action at this time.
0 commit comments