File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments