File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,9 @@ jobs:
233
233
id : detect-version
234
234
run : |
235
235
sed -E 's/^projectVersion( *= *| +)([^ ]+)/::set-output name=version::\2/g' gradle/version.properties
236
- - name : Publish snapshot to JBoss Nexus
236
+ - name : Publish snapshots to OSSRH, close repository and release
237
237
env :
238
- ORG_GRADLE_PROJECT_jbossNexusUser : ${{ secrets.JBOSS_NEXUS_USER }}
239
- ORG_GRADLE_PROJECT_jbossNexusPassword : ${{ secrets.JBOSS_NEXUS_PASSWORD }}
240
- if : endsWith( steps.detect-version.outputs.version, '-SNAPSHOT' ) && env.ORG_GRADLE_PROJECT_jbossNexusUser
241
- run : ./gradlew publishToJBossNexus closeAndReleaseJBossNexusStagingRepository
238
+ ORG_GRADLE_PROJECT_sonatypeOssrhUser : ${{ secrets.SONATYPE_OSSRH_USER }}
239
+ ORG_GRADLE_PROJECT_sonatypeOssrhPassword : ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
240
+ run : ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
241
+
You can’t perform that action at this time.
0 commit comments