File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2222 server-username : OSSRH_USERNAME
2323 server-password : OSSRH_PASSWORD
2424 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
25- gpg-passphrase : ${{ secrets. MAVEN_GPG_PASSPHRASE }}
25+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
2626 - name : Build with Maven
2727 run : mvn -B compile --file pom.xml
2828
3737
3838 - name : Publish to Apache Maven Central
3939 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
40- run : mvn -DskipTests --batch-mode deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }}
40+ run : mvn -DskipTests deploy
4141 env :
4242 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
4343 OSSRH_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 144144 </goals >
145145 </execution >
146146 </executions >
147+ <configuration >
148+ <!-- Prevent gpg from using pinentry programs -->
149+ <gpgArguments >
150+ <arg >--pinentry-mode</arg >
151+ <arg >loopback</arg >
152+ </gpgArguments >
153+ </configuration >
147154 </plugin >
148155
149156 </plugins >
You can’t perform that action at this time.
0 commit comments