File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2929 run : |
3030 NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
3131 echo "New version: ${NEW_VERSION}"
32- ./gradlew publish -Pversion=${NEW_VERSION}
32+ ./gradlew publish closeAndReleaseRepository -Pversion=${NEW_VERSION}
3333 env :
3434 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
3535 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
Original file line number Diff line number Diff line change @@ -181,7 +181,9 @@ tasks {
181181 jar {
182182 enabled = false
183183 }
184- val closeAndReleaseRepository by getting
185- val publish by getting
186- publish.finalizedBy(closeAndReleaseRepository)
184+ nexusStaging {
185+ serverUrl = " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
186+ username = System .getenv(" SONATYPE_USERNAME" )
187+ password = System .getenv(" SONATYPE_PASSWORD" )
188+ }
187189}
You can’t perform that action at this time.
0 commit comments