Skip to content

Commit

Permalink
Use envvar for GPG signature
Browse files Browse the repository at this point in the history
Unify release configuration with PR asciidoctor#736 for main branch
  • Loading branch information
abelsromero committed Jan 10, 2024
1 parent 5b67431 commit 2e9c3aa
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,13 @@
<profiles>
<profile>
<!--
To release to bintray, add your credentials to ~/.m2/settings.xml and run:
$ mvn deploy
-->
<id>release-profile</id>
To release, define environment variables:
export GPG_KEYNAME=""
export GPG_PASSPHRASE=""
Then, run
$ mvn deploy
-->
<id>release</id>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -410,8 +412,8 @@
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<executable>gpg2</executable>
<keyname>${gpg.keyname}</keyname>
<passphrase>${gpg.passphrase}</passphrase>
<keyname>${env.GPG_KEYNAME}</keyname>
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
Expand Down

0 comments on commit 2e9c3aa

Please sign in to comment.