We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 643b308 + d311980 commit d793270Copy full SHA for d793270
admin/publishPrep.sh
@@ -2,11 +2,12 @@
2
3
# prep environment for publish to sonatype staging if the HEAD commit is tagged
4
5
-headTag=$(git describe --exact-match ||:)
+# git on travis does not fetch tags, but we have TRAVIS_TAG
6
+# headTag=$(git describe --exact-match ||:)
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//)\""
+if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
+ echo "Going to release from tag $TRAVIS_TAG!"
10
+ export publishVersion="set every version := \"$(echo $TRAVIS_TAG | sed -e s/^v//)\""
11
export extraTarget="publish-signed"
12
cat admin/gpg.sbt >> project/plugins.sbt
13
admin/decrypt.sh sensitive.sbt
0 commit comments