Skip to content

Commit

Permalink
Issue #74: Publish maven site on every successful travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk23 committed Sep 13, 2015
1 parent 92e5889 commit 5b83127
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ language: java

install: /bin/true
script: mvn clean package
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site init'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site config user.name "$(curl -s https://api.github.com/user?access_token=${GH_OAUTH2} | jq .name)"'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site config user.email "$(curl -s https://api.github.com/user?access_token=${GH_OAUTH2} | jq .email)"'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site add .'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site commit -m "Deploy site from https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}"'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && git -C target/site push --force --quiet "https://${GH_OAUTH2}@github.com/${TRAVIS_REPO_SLUG}.git" master:gh-pages'

branches:
only:
Expand Down

0 comments on commit 5b83127

Please sign in to comment.