Skip to content

Commit

Permalink
travis: deploy on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
g4s8 authored Sep 27, 2017
1 parent 4069b1e commit b5af9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ after_success:
before_deploy:
- "mkdir .bintray"
- "wget -O .bintray/settings.xml https://gist.githubusercontent.com/g4s8/9b58037668e8dbbd86585cddb7ddf9b8/raw/b5c2f16c7fe5e4161ec7555628b69d14222ffbf3/bintray-settings.xml"
- "mvn build-helper:parse-version versions:set -DnewVersion=\\${parsedVersion.majorVersion}.\\${parsedVersion.minorVersion}.$TRAVIS_BUILD_NUMBER versions:commit"
- "mvn build-helper:parse-version versions:set -DnewVersion=$TRAVIS_TAG.$TRAVIS_BUILD_NUMBER versions:commit"

deploy:
- provider: "script"
skip_cleanup: true
script: "mvn deploy -e -X --settings .bintray/settings.xml"
script: "mvn deploy --settings .bintray/settings.xml"
on:
tags: true

0 comments on commit b5af9b3

Please sign in to comment.