From 7a9761b9ed8c5800ba9c593a7ca0e9032690f78e Mon Sep 17 00:00:00 2001 From: Sverre H Huseby Date: Sat, 7 Oct 2023 14:08:06 +0200 Subject: [PATCH] fix: Maven Central --- .github/workflows/release.yml | 5 +++++ pom.xml | 11 +++++++++++ 2 files changed, 16 insertions(+) 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 + +