From f54a779d26518fb0511cbc8bfb584bc491da0477 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 4 Apr 2024 16:28:52 +0530 Subject: [PATCH] fix: added fix for gpg signing issue --- .github/workflows/maven-publish.yml | 7 +++++-- pom.xml | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index afd3708e..54561a3c 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -20,9 +20,10 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE - name: Publish to the Maven Central Repository - run: mvn --batch-mode deploy + run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} @@ -37,7 +38,9 @@ jobs: java-version: "8" distribution: "adopt" server-id: github + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE - name: Publish to GitHub Packages - run: mvn --batch-mode deploy + run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 9ed6e771..6a4976b3 100644 --- a/pom.xml +++ b/pom.xml @@ -268,6 +268,12 @@ sign + + + --pinentry-mode + loopback + +