Skip to content

Commit

Permalink
fix(ci): GITHUB_TAG_NAME is now GIT_TAG_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Dec 1, 2020
1 parent e6477ac commit 7c12fc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .buildsystem/deploy-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fi
DTASK=":publishDefaultPublicationToGitHubRepository"
TARGETS="$DTASK"

if [ -n "$GITHUB_TAG_NAME" ]; then
echo "on a tag -> deploy release version $GITHUB_TAG_NAME"
if [ -n "$GIT_TAG_NAME" ]; then
echo "on a tag -> deploy release version $GIT_TAG_NAME"
./gradlew "$TARGETS" -PreleaseMode=RELEASE
else
echo "not on a tag -> deploy snapshot version"
Expand Down
4 changes: 2 additions & 2 deletions .buildsystem/deploy-sonatype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ TARGETS="$DTASK"

echo "Value of TEST_ENVVAR is $TEST_ENVVAR"

if [ -z "$GITHUB_TAG_NAME" ]; then
if [ -z "$GIT_TAG_NAME" ]; then
echo "not on a tag -> deploy snapshot version"
./gradlew "$TARGETS" -PreleaseMode=SNAPSHOT --info --stacktrace
else
echo "on a tag -> deploy release version $GITHUB_TAG_NAME"
echo "on a tag -> deploy release version $GIT_TAG_NAME"
./gradlew "$TARGETS" -PreleaseMode=RELEASE
fi
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object Versions {
val adam = System.getenv("GITHUB_TAG_NAME") ?: "0.0.2"
val adam = System.getenv("GIT_TAG_NAME") ?: "0.0.2"
val kotlin = "1.4.10"
val coroutines = "1.3.9"

Expand Down

0 comments on commit 7c12fc6

Please sign in to comment.