File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,15 @@ jobs:
2020 run : chmod +x gradlew
2121 - name : Build with Gradle
2222 run : ./gradlew build
23+ env :
24+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
2325 - name : Assemble jar
24- run : ./gradlew build
26+ run : ./gradlew jar
27+ env :
28+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
2529 - name : Publish to Maven Central
2630 env :
2731 MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
2832 MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
33+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
2934 run : ./gradlew publish
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77group ' io.securecodebox'
8- version ' 0.0.7 -SNAPSHOT'
8+ version ( System . getenv( " DD_CLIENT_VERSION " ) ? System . getenv( " DD_CLIENT_VERSION " ) : ' 0.42.0 -SNAPSHOT' )
99sourceCompatibility = ' 11'
1010
1111repositories {
You can’t perform that action at this time.
0 commit comments