Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions admin/publishPrep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

# prep environment for publish to sonatype staging if the HEAD commit is tagged

headTag=$(git describe --exact-match ||:)
# git on travis does not fetch tags, but we have TRAVIS_TAG
# headTag=$(git describe --exact-match ||:)

if [[ "$headTag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
echo "HEAD is tagged as $headTag."
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!"
export publishVersion="set every version := \"$(echo $TRAVIS_TAG | sed -e s/^v//)\""
export extraTarget="publish-signed"
cat admin/gpg.sbt >> project/plugins.sbt
admin/decrypt.sh sensitive.sbt
Expand Down