File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414 with :
1515 java-version : ' 8'
1616 distribution : ' adopt'
17- server-id : sonatype-nexus
17+ server-id : sonatype-central
1818 server-username : MAVEN_USERNAME
1919 server-password : MAVEN_PASSWORD
2020 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
@@ -27,15 +27,15 @@ jobs:
2727 restore-keys : |
2828 ${{ runner.os }}-maven-
2929 - name : Build and test
30- run : mvn --batch-mode -Pstaged-releases clean verify
30+ run : mvn --batch-mode clean verify
3131 - name : Store any log files if tests failed
3232 if : failure()
3333 uses : actions/upload-artifact@v2
3434 with :
3535 path : target/it/**/build.log
3636 - name : Deploy to Sonatype
3737 # Note that this also deploys snapshots
38- run : mvn --batch-mode -Pstaged-releases clean -DskipTests -Dinvoker.skip=true -Psonatype-oss- release verify org.sonatype.plugins:nexus-staging -maven-plugin:1.6.8:deploy -DnexusUrl=https://oss. sonatype.org/ -DserverId=sonatype-nexus -DkeepStagingRepositoryOnCloseRuleFailure =true
38+ run : mvn --batch-mode clean -DskipTests -Dinvoker.skip=true -Psonatype-release verify org.sonatype.central:central-publishing -maven-plugin:0.8.0:publish -DpublishingServerId= sonatype-central -DautoPublish =true
3939 env :
4040 MAVEN_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
4141 MAVEN_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments