File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,12 @@ jobs:
2424 distribution : ' temurin'
2525 cache : ' gradle'
2626 - name : Build dex-tools with Gradle
27- run : ./gradlew check distZip
27+ run : |
28+ ./gradlew "-DGITHUB_REF_NAME=${GITHUB_REF_NAME}" check distZip
2829
2930 - name : Archive dex tools
3031 uses : actions/upload-artifact@v3
3132 if : success()
3233 with :
33- name : dex-tools-2.2-SNAPSHOT
34- path : dex-tools/build/distributions/dex-tools-2.2-SNAPSHOT .zip
34+ name : dex-tools
35+ path : dex-tools/build/distributions/dex-tools-* .zip
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ allprojects {
33 apply plugin : ' idea'
44 apply plugin : ' eclipse'
55 group = ' com.googlecode.d2j'
6- version = ' 2.2-SNAPSHOT '
6+ version = System . getProperty( ' GITHUB_REF_NAME ' , ' 2.x ' ) . replaceAll( ' [/ ] ' , ' - ' )
77}
88
99defaultTasks(' clean' ,' distZip' )
You can’t perform that action at this time.
0 commit comments