-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |