Skip to content

Commit dd7d55a

Browse files
committed
ci: securely pass GPG passphrase via loopback and env var
1 parent 54e0702 commit dd7d55a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
mvn clean deploy \
4747
-DskipTests=${{ github.event.inputs.skipTests || 'true' }} \
4848
--no-transfer-progress \
49-
-P Java11+
49+
-P java11plus
5050
env:
5151
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
5252
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@
426426
<goals>
427427
<goal>sign</goal>
428428
</goals>
429+
<configuration>
430+
<gpgArguments>
431+
<arg>--pinentry-mode</arg>
432+
<arg>loopback</arg>
433+
</gpgArguments>
434+
</configuration>
429435
</execution>
430436
</executions>
431437
</plugin>
@@ -728,7 +734,7 @@
728734
</profile>
729735

730736
<profile>
731-
<id>Java 11+</id>
737+
<id>java11plus</id>
732738
<activation>
733739
<jdk>[11,)</jdk>
734740
</activation>

0 commit comments

Comments
 (0)