Skip to content

Commit

Permalink
CI: deploy docs on tags as well as master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Frust committed Nov 14, 2018
1 parent 2a639a9 commit 970a22c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Expand Up @@ -111,12 +111,20 @@ jobs:
before_deploy:
- "touch docs/build/html/.nojekyll"
deploy:
provider: pages
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
# only deploy one build out of the test matrix to gh-pages
# deploy master branch to gh-pages
on:
branch: master
local_dir: "docs/build/html"
target_branch: gh-pages
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
# deploy on new version tags to gh-pages
on:
tags: true
if: tag =~ ^v
local_dir: "docs/build/html"
target_branch: gh-pages

0 comments on commit 970a22c

Please sign in to comment.