Skip to content

Commit 40e8c4b

Browse files
authored
Merge pull request #58 from ocefpaf/deploy_draft
deploy draft
2 parents 02b384e + 0343e35 commit 40e8c4b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2425
install:
2526
- bundle exec jekyll build --verbose
2627

2728
script:
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

0 commit comments

Comments
 (0)