Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #18 from Tweetsched/fix_release_flow
Browse files Browse the repository at this point in the history
Update .travis.yml
  • Loading branch information
Gleb Kosteiko authored Jun 24, 2018
2 parents cd4f2c4 + 0c1a9a7 commit 160c5c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ before_install: mvn package -DskipTests=true -DbuildNumber=$TRAVIS_BUILD_NUMBER
before_deploy:
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
- export GIT_TAG=1.0.$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push origin $GIT_TAG

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- target/tweetsched-dto-v1.0.$TRAVIS_BUILD_NUMBER.jar
name: tweetsched-dto-v1.0.$TRAVIS_BUILD_NUMBER
- target/tweetsched-dto-1.0.$TRAVIS_BUILD_NUMBER.jar
name: tweetsched-dto-1.0.$TRAVIS_BUILD_NUMBER
skip-cleanup: true
on:
tags: true
Expand Down

0 comments on commit 160c5c2

Please sign in to comment.