File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ jobs:
2222 with :
2323 java-version : ' 11'
2424 distribution : ' temurin'
25- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
26- settings-path : ${{ github.workspace }} # location for the settings.xml file
25+ server-id : ossrh
26+ server-username : MAVEN_USERNAME
27+ server-password : MAVEN_PASSWORD
28+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
29+ gpg-passphrase : GPG_PASSPHRASE
2730
2831 - name : Build with Maven
2932 run : mvn -B package --file pom.xml
3033
3134 - name : Publish to GitHub Packages Apache Maven
32- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
35+ run : mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
3336 env :
34- GITHUB_TOKEN : ${{ github.token }}
37+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
38+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
39+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 235235 <goals >
236236 <goal >sign</goal >
237237 </goals >
238+ <configuration >
239+ <gpgArguments >
240+ <arg >--pinentry-mode</arg >
241+ <arg >loopback</arg >
242+ </gpgArguments >
243+ </configuration >
238244 </execution >
239245 </executions >
240246 </plugin >
You can’t perform that action at this time.
0 commit comments