From 00c8448a22d953839df7c67552b09fc7bcbf9820 Mon Sep 17 00:00:00 2001 From: Anindya Chatterjee Date: Sat, 6 Jan 2024 15:59:54 +0530 Subject: [PATCH] fixing gpg signing issue --- .github/dependabot.yml | 2 -- .github/workflows/release.yml | 8 ++++---- .github/workflows/snapshot.yml | 7 +++++-- CHANGELOG.md | 2 +- pom.xml | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8e4dc933f..7239c0b14 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,8 +5,6 @@ updates: schedule: interval: daily target-branch: main - ignore: - - dependency-name: "org.apache.maven.plugins:maven-gpg-plugin" - package-ecosystem: "github-actions" directory: "/" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96e63d9c7..272ebba5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,17 +41,17 @@ jobs: openssl aes-256-cbc -pass pass:"$PGP_KEY_PASSWORD" -in "$GITHUB_WORKSPACE"/.ci/secring.gpg.enc -out "$GITHUB_WORKSPACE"/secring.gpg -d -md md5 mkdir -p "$HOME"/.gnupg cp "$GITHUB_WORKSPACE"/secring.gpg "$HOME"/.gnupg/secring.gpg + echo "allow-loopback-pinentry" >> "$HOME"/.gnupg/gpg-agent.conf + echo "pinentry-mode loopback" >> "$HOME"/.gnupg/gpg.conf + gpgconf --reload gpg-agent shell: bash env: PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} - name: Deploy Release - run: | - export GPG_TTY=`tty` - mvn -B -ff -ntp deploy -DskipTests + run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD" shell: bash env: MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} \ No newline at end of file diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index db34764e5..2299bf00b 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -41,14 +41,17 @@ jobs: openssl aes-256-cbc -pass pass:"$PGP_KEY_PASSWORD" -in "$GITHUB_WORKSPACE"/.ci/secring.gpg.enc -out "$GITHUB_WORKSPACE"/secring.gpg -d -md md5 mkdir -p "$HOME"/.gnupg cp "$GITHUB_WORKSPACE"/secring.gpg "$HOME"/.gnupg/secring.gpg + echo "allow-loopback-pinentry" >> "$HOME"/.gnupg/gpg-agent.conf + echo "pinentry-mode loopback" >> "$HOME"/.gnupg/gpg.conf + gpgconf --reload gpg-agent shell: bash env: PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} - name: Deploy Snapshot - run: mvn -B -ff -ntp deploy -DskipTests + run: mvn -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD" + shell: bash env: MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }} PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 24d1e5324..2df34372c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Release 4.2.0 - Jan 5, 2024 +## Release 4.2.0 - Jan 6, 2024 ### New Changes diff --git a/pom.xml b/pom.xml index a8199ae4f..a8ae08440 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ 1.23 7.0_r2 1.6.13 - 1.6 + 3.1.0