File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 21
21
server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
22
22
server-username : MAVEN_USERNAME # env variable for username in deploy
23
23
server-password : MAVEN_PASSWORD # env variable for token in deploy
24
- gpg-private-key : ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
25
- gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
26
24
- name : Enforce project version ${{ github.event.inputs.tag }}
27
25
run : mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }}
28
26
- name : Deploy
35
33
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
36
34
MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
37
35
MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
38
- MAVEN_GPG_PASSPHRASE : ${{ secrets.RELEASES_GPG_PASSPHRASE }}
36
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.RELEASES_GPG_PASSPHRASE }}
37
+ MAVEN_GPG_KEY : ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
Original file line number Diff line number Diff line change @@ -13,15 +13,14 @@ jobs:
13
13
distribution : ' zulu'
14
14
java-version : 22
15
15
cache : ' maven'
16
- gpg-private-key : ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
17
- gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
18
16
- name : Enforce project version ${{ github.event.release.tag_name }}
19
17
run : mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
20
18
- name : Deploy
21
19
run : mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
22
20
env :
23
21
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
22
MAVEN_GPG_PASSPHRASE : ${{ secrets.RELEASES_GPG_PASSPHRASE }}
23
+ MAVEN_GPG_KEY : ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
25
24
- name : Slack Notification
26
25
uses : rtCamp/action-slack-notify@v2
27
26
env :
Original file line number Diff line number Diff line change 242
242
<goal >sign</goal >
243
243
</goals >
244
244
<configuration >
245
- <gpgArguments >
246
- <arg >--pinentry-mode</arg >
247
- <arg >loopback</arg >
248
- </gpgArguments >
245
+ <signer >bc</signer >
249
246
</configuration >
250
247
</execution >
251
248
</executions >
You can’t perform that action at this time.
0 commit comments