diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee5772a7..4eead9d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,17 +90,21 @@ jobs: distribution: liberica java-version: 17 cache: maven + server-id: central + server-username: CENTRAL_USERNAME + server-password: CENTRAL_PASSWORD + gpg-private-key: ${{ secrets.SIGNING_KEY }} + gpg-passphrase: GPG_PASSPHRASE - name: Grant execute permission for mvnw run: chmod +x mvnw - name: Release Maven package - uses: samuelmeuli/action-maven-publish@v1 - with: - gpg_private_key: ${{ secrets.SIGNING_KEY }} - gpg_passphrase: ${{ secrets.SIGNING_PASSWORD }} - nexus_username: ${{ secrets.OSSRH_USERNAME }} - nexus_password: ${{ secrets.OSSRH_PASSWORD }} + run: mvn -B -e -ntp -Pdeploy deploy + env: + CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }} + CENTRAL_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }} - name: Upload reports if: failure() diff --git a/pom.xml b/pom.xml index 26e20b5d..4353760d 100644 --- a/pom.xml +++ b/pom.xml @@ -107,6 +107,16 @@ + + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 + true + + central + true + + @@ -140,17 +150,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-plugin.version} - true - - ossrh - https://oss.sonatype.org/ - true - - org.codehaus.mojo versions-maven-plugin