Skip to content

Commit 681494a

Browse files
committed
use bc signer for maven-sign-plugin
1 parent 90d0fde commit 681494a

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/publish-central.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2727
server-username: MAVEN_USERNAME # env variable for username in deploy
2828
server-password: MAVEN_PASSWORD # env variable for token in deploy
29-
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
30-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
3129
- name: Enforce project version ${{ github.event.inputs.tag }}
3230
run: mvn versions:set -B -DnewVersion="${{ github.event.inputs.tag }}"
3331
- name: Deploy
@@ -40,4 +38,5 @@ jobs:
4038
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
4139
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4240
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
43-
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
41+
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
42+
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
@@ -18,15 +18,14 @@ jobs:
1818
distribution: 'temurin'
1919
java-version: 22
2020
cache: 'maven'
21-
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
22-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
2321
- name: Enforce project version ${{ github.event.release.tag_name }}
2422
run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}"
2523
- name: Deploy
2624
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
2725
env:
2826
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2927
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
28+
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
3029
notify:
3130
runs-on: ubuntu-latest
3231
needs: [publish]

pom.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,7 @@
339339
<goal>sign</goal>
340340
</goals>
341341
<configuration>
342-
<gpgArguments>
343-
<arg>--pinentry-mode</arg>
344-
<arg>loopback</arg>
345-
</gpgArguments>
342+
<signer>bc</signer>
346343
</configuration>
347344
</execution>
348345
</executions>

0 commit comments

Comments
 (0)