Skip to content

Commit 7fd5875

Browse files
use BC signer for maven-gpg-plugin
1 parent 540397c commit 7fd5875

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/publish-central.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2222
server-username: MAVEN_USERNAME # env variable for username in deploy
2323
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
2624
- name: Verify project version = ${{ github.event.inputs.tag }}
2725
run: |
2826
PROJECT_VERSION=$(./mvnw help:evaluate "-Dexpression=project.version" -q -DforceStdout)
@@ -32,4 +30,5 @@ jobs:
3230
env:
3331
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3432
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
35-
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
34+
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}

.github/workflows/publish-github.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
java-version: 21
1414
distribution: 'zulu'
1515
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
1816
- name: Verify project version = ${{ github.event.release.tag_name }}
1917
run: |
2018
PROJECT_VERSION=$(./mvnw help:evaluate "-Dexpression=project.version" -q -DforceStdout)
@@ -24,6 +22,7 @@ jobs:
2422
env:
2523
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2624
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
25+
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
2726
- name: Slack Notification
2827
uses: rtCamp/action-slack-notify@v2
2928
env:

pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,8 @@
320320
<goal>sign</goal>
321321
</goals>
322322
<configuration>
323-
<gpgArguments>
324-
<arg>--pinentry-mode</arg>
325-
<arg>loopback</arg>
326-
</gpgArguments>
323+
<signer>bc</signer>
324+
<keyFingerprint>58117AFA1F85B3EEC154677D615D449FE6E6A235</keyFingerprint>
327325
</configuration>
328326
</execution>
329327
</executions>

0 commit comments

Comments
 (0)