diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2796590..a2a306d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,14 @@ jobs: distribution: "temurin" gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + server-id: ossrh + server-username: MAVEN_SONATYPE_USERNAME + server-password: MAVEN_SONATYPE_PASSPHRASE cache: maven - name: Publish package run: ./bin/deploy-multi.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + MAVEN_SONATYPE_USERNAME: ${{ secrets.MAVEN_SONATYPE_USERNAME }} + MAVEN_SONATYPE_PASSPHRASE: ${{ secrets.MAVEN_SONATYPE_PASSPHRASE }} diff --git a/pom.xml b/pom.xml index 0d41b06..38ccbd7 100644 --- a/pom.xml +++ b/pom.xml @@ -136,6 +136,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://s01.oss.sonatype.org/ + false + +