Skip to content

Commit e33bc26

Browse files
committed
updating gpg signature for java
1 parent f3d0aa1 commit e33bc26

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/java.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
3131
gpgconf --kill gpg-agent
3232
33+
- name: Verify GPG key
34+
run: |
35+
gpg --list-secret-keys
36+
echo "Testing GPG signing..."
37+
echo "test" | gpg --batch --pinentry-mode loopback --passphrase "$MAVEN_GPG_PASSPHRASE" --clearsign > /dev/null && echo "GPG signing works!"
38+
env:
39+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
40+
3341
- name: Install ANTLR4
3442
run: make dev
3543

java/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@
144144
<groupId>org.apache.maven.plugins</groupId>
145145
<artifactId>maven-gpg-plugin</artifactId>
146146
<version>3.2.7</version>
147+
<configuration>
148+
<gpgArguments>
149+
<arg>--pinentry-mode</arg>
150+
<arg>loopback</arg>
151+
</gpgArguments>
152+
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
153+
</configuration>
147154
<executions>
148155
<execution>
149156
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)