File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,18 +39,25 @@ jobs:
3939
4040 - name : Import GPG key manually
4141 run : |
42+ mkdir -p /home/runner/.gnupg
43+ chmod 700 /home/runner/.gnupg
4244 echo "${{ secrets.PGP_SECRET }}" | base64 -d | gpg --import --batch --no-tty
45+ echo "allow-loopback-pinentry" >> /home/runner/.gnupg/gpg-agent.conf
46+ gpgconf --kill gpg-agent || true
47+ sleep 1
4348 gpg --list-secret-keys
49+ echo "GPG version:"
50+ gpg --version | head -1
4451 env :
4552 GNUPGHOME : /home/runner/.gnupg
4653
4754 - name : Publish to Apache Maven Central
4855 run : |
49- export GPG_TTY=$(tty)
5056 mvn clean -Darguments=-DskipTests release:prepare release:perform -DreleaseVersion=${{github.event.inputs.version}} -Prelease
5157 env :
5258 MAVEN_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
5359 MAVEN_CENTRAL_TOKEN : ${{ secrets.SONATYPE_PASSWORD }}
5460 MAVEN_GPG_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
5561 GNUPGHOME : /home/runner/.gnupg
62+ GPG_TTY : /dev/null
5663 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 141141 </goals >
142142 </execution >
143143 </executions >
144+ <configuration >
145+ <gpgArguments >
146+ <arg >--pinentry-mode</arg >
147+ <arg >loopback</arg >
148+ <arg >--batch</arg >
149+ <arg >--no-tty</arg >
150+ </gpgArguments >
151+ </configuration >
144152 </plugin >
145153
146154 <plugin >
You can’t perform that action at this time.
0 commit comments