diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c7f3fd7fe..a60af0e3b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -24,7 +24,9 @@ jobs: distribution: 'temurin' cache: 'gradle' - name: Build dex-tools with Gradle - run: ./gradlew check distZip + run: | + set -ex + ./gradlew "-DGITHUB_REF_NAME=${GITHUB_REF_NAME}" check distZip - name: Archive dex tools uses: actions/upload-artifact@v3 diff --git a/build.gradle b/build.gradle index 8165f9a07..45fd154c0 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ allprojects { apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.googlecode.d2j' - version = '2.2-SNAPSHOT' + version = System.getProperty('GITHUB_REF_NAME', '2.x') } defaultTasks('clean','distZip')