From 0200b87c06655ecb1016a8fb4985610cca9a8238 Mon Sep 17 00:00:00 2001 From: AJ Rice <53190766+ajrice6713@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:38:17 -0500 Subject: [PATCH] Signing is required --- .github/workflows/publish.yml | 3 +++ pom.xml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f48b83..f5044f4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,6 +19,8 @@ jobs: server-id: 'ossrh' server-username: OSSRH_USERNAME server-password: OSSRH_PASSWORD + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Get Maven project version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV @@ -31,3 +33,4 @@ jobs: env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} diff --git a/pom.xml b/pom.xml index 1a6acf8..070e1d6 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,26 @@ + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + + + --pinentry-mode + loopback + + + org.apache.maven.plugins maven-source-plugin