Skip to content

Commit

Permalink
chore: add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Jun 21, 2024
1 parent cad35a0 commit c3594bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:

- name: Deploy
run: |
gpg --list-secret-keys
export GPG_TTY=$(tty)
chmod +x scripts/deploy.sh
./scripts/deploy.sh
Expand Down
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@
<goal>sign</goal>
</goals>
<configuration>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>gpg-passphrase</passphraseServerId>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
then
VERSION_NUMBER=${TAG:1}
echo "on a tag -> set pom.xml <version> 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
Expand Down
6 changes: 5 additions & 1 deletion scripts/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
<server>
<id>gpg-passphrase</id>
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
</server>
</servers>
<profiles>
<profile>
Expand All @@ -17,8 +21,8 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.keyname>${env.GPG_KEY_ID}</gpg.keyname>
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit c3594bd

Please sign in to comment.