From 7c12fc66d6f49ae39b6040f204d50fbd4326b9d1 Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Wed, 2 Dec 2020 01:15:15 +1100 Subject: [PATCH] fix(ci): GITHUB_TAG_NAME is now GIT_TAG_NAME --- .buildsystem/deploy-github.sh | 4 ++-- .buildsystem/deploy-sonatype.sh | 4 ++-- buildSrc/src/main/kotlin/Versions.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildsystem/deploy-github.sh b/.buildsystem/deploy-github.sh index 1a7ccf236..af481aa33 100755 --- a/.buildsystem/deploy-github.sh +++ b/.buildsystem/deploy-github.sh @@ -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" diff --git a/.buildsystem/deploy-sonatype.sh b/.buildsystem/deploy-sonatype.sh index bfbbbb34a..aacb46188 100755 --- a/.buildsystem/deploy-sonatype.sh +++ b/.buildsystem/deploy-sonatype.sh @@ -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 \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index ce458977c..77b683b8e 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -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"