Skip to content

Commit e2ee92d

Browse files
committed
Also update Github workflow to deployment via Central Portal
1 parent b5efa23 commit e2ee92d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)