File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# prep environment for publish to sonatype staging if the HEAD commit is tagged
4
4
5
- headTag=$( git describe --exact-match || :)
5
+ # git on travis does not fetch tags, but we have TRAVIS_TAG
6
+ # headTag=$(git describe --exact-match ||:)
6
7
7
- if [[ " $headTag " =~ ^v[0-9]+\. [0-9]+\. [0-9]+ (-[A-Za-z0-9-]+)? ]]; then
8
- echo " HEAD is tagged as $headTag . "
9
- export publishVersion=" set every version := \" $( echo $headTag | sed -e s/^v//) \" "
8
+ if [[ " $TRAVIS_TAG " =~ ^v[0-9]+\. [0-9]+\. [0-9]+ (-[A-Za-z0-9-]+)? ]]; then
9
+ echo " Going to release from tag $TRAVIS_TAG ! "
10
+ export publishVersion=" set every version := \" $( echo $TRAVIS_TAG | sed -e s/^v//) \" "
10
11
export extraTarget=" publish-signed"
11
12
cat admin/gpg.sbt >> project/plugins.sbt
12
13
admin/decrypt.sh sensitive.sbt
You can’t perform that action at this time.
0 commit comments