From c3594bd7e51ef1df5312c6f3002b081b7a841691 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Fri, 21 Jun 2024 14:16:34 -0400 Subject: [PATCH] chore: add debug info --- .github/workflows/release.yml | 1 + pom.xml | 7 ++++++- scripts/deploy.sh | 2 +- scripts/settings.xml | 6 +++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3b1546..189fe5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,7 @@ jobs: - name: Deploy run: | + gpg --list-secret-keys export GPG_TTY=$(tty) chmod +x scripts/deploy.sh ./scripts/deploy.sh diff --git a/pom.xml b/pom.xml index 266977d..a05be35 100644 --- a/pom.xml +++ b/pom.xml @@ -191,7 +191,12 @@ sign - ${gpg.keyname} + ${gpg.keyname} + gpg-passphrase + + --pinentry-mode + loopback + diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 9eb9215..43138b4 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -7,7 +7,7 @@ then then VERSION_NUMBER=${TAG:1} echo "on a tag -> set pom.xml to $VERSION_NUMBER" - mvn --settings scripts/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$VERSION_NUMBER 1>/dev/null 2>/dev/null + mvn --settings scripts/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$VERSION_NUMBER 1>/dev/null 2>/dev/null -e -X else echo "Tag does not start with v: ${TAG} keep snapshot version in pom.xml" fi diff --git a/scripts/settings.xml b/scripts/settings.xml index 1a11498..b5e2dd2 100644 --- a/scripts/settings.xml +++ b/scripts/settings.xml @@ -9,6 +9,10 @@ ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} + + gpg-passphrase + ${env.GPG_PASSPHRASE} + @@ -17,8 +21,8 @@ true + ${env.GPG_KEY_ID} ${env.GPG_EXECUTABLE} - ${env.GPG_PASSPHRASE}