forked from linkedin/li-apache-kafka-clients
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
take advantage of the new tag support in circleci 2.0 for releasing o…
…n tags (linkedin#60)
- Loading branch information
1 parent
9ec3dfb
commit 35e6cac
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
currentTag=`git describe --tags` | ||
buildVersion=`grep -oP '^[\s]*version[\s]*=[\s]*\K([^\s]*)(?=([\s]*))' gradle.properties` | ||
|
||
echo current tag is $currentTag, build version is $buildVersion | ||
|
||
if [ "x$currentTag" != "xRELEASE-$buildVersion" ]; then | ||
echo "current tag version does not match project version" | ||
exit 1 | ||
fi | ||
|
||
echo "Publishing a release" | ||
#./gradlew distributeBuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters