Skip to content

Commit

Permalink
Adjust travis gh-pages deployment to only run following the lint-test…
Browse files Browse the repository at this point in the history
… stage
  • Loading branch information
mbeacom committed Sep 17, 2018
1 parent 8a9f321 commit 7e69bcd
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ cache:
- $HOME/.cache/pip
- node_modules

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: _build/site
fqdn: docs.gitcoin.co
target-branch: gh-pages
on:
branch: master

jobs:
include:
# Lint and test the repository.
Expand All @@ -54,6 +43,16 @@ jobs:
env:
- PYTHONPATH="${TRAVIS_BUILD_DIR}/app/"
- DJANGO_SETTINGS_MODULE="app.settings"
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: _build/site
fqdn: docs.gitcoin.co
target-branch: gh-pages
on:
branch: master
# Deploy to Docker Hub and initiate a rolling update for web.
- stage: deploy-stage
if: branch = master AND NOT type = pull_request
Expand Down

0 comments on commit 7e69bcd

Please sign in to comment.