File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,13 @@ jobs:
2626 java-version : ' 21'
2727
2828 - name : Upload Artifacts
29- run : ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
29+ run : ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel
3030 env :
3131 ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
3232 ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
3333 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_KEY }}
3434 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
3535
36- - name : Retrieve version
37- run : |
38- echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
39- - name : Publish release
40- run : ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
41- if : " !endsWith(env.VERSION_NAME, '-SNAPSHOT')"
42- env :
43- ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
44- ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
4536 test :
4637 runs-on : ubuntu-latest
4738 timeout-minutes : 30
You can’t perform that action at this time.
0 commit comments