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"