Skip to content

Commit

Permalink
use TRAVIS_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
nelenkov committed Feb 23, 2021
1 parent 2d92a84 commit 192b02a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ script: gradle shadowJar
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "nelenkov"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
provider: releases
file: build/libs/abe.jar
api_key: "$GH_TOKEN"
file: build/libs/abe.jar
skip_cleanup: true
on:
tags: true

0 comments on commit 192b02a

Please sign in to comment.