Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Mar 21, 2018
1 parent efe17a4 commit 7fe7cb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ script:
- ssh-add $TRAVIS_BUILD_DIR/deploy_key
- git clone --branch gh-pages https://github.com/Open-EO/openeo-api /tmp/gh-pages
- if [[ $TRAVIS_BRANCH == 'master' ]] ; then cd /tmp/gh-pages/ && rm -rf !(v) && cd - && cp -R site/* /tmp/gh-pages/ ; fi
- if [[ $TRAVIS_BRANCH != 'master' ]] ; rm -rf /tmp/gh-pages/v/$TRAVIS_BRANCH && mkdir -p /tmp/gh-pages/v/$TRAVIS_BRANCH/ && cp -R site/* /tmp/gh-pages/v/$TRAVIS_BRANCH/ ; fi
- if [[ $TRAVIS_BRANCH != 'master' ]] ; then rm -rf /tmp/gh-pages/v/$TRAVIS_BRANCH && mkdir -p /tmp/gh-pages/v/$TRAVIS_BRANCH/ && cp -R site/* /tmp/gh-pages/v/$TRAVIS_BRANCH/ ; fi
- git config user.name "Travis CI Documentation Builder"
- git config user.email "[email protected]"
- git config user.email "marius
[email protected]"
- cd /tmp/gh-pages && git add .
- git commit -m "Automated documentation build[ci skip]"
- git push --force "${GH_REF}" gh-pages:gh-pages

0 comments on commit 7fe7cb2

Please sign in to comment.