Skip to content

Commit dde8b92

Browse files
committed
chore: fix GPG signing in CI and rename publish secrets
1 parent 0f2eed0 commit dde8b92

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish_maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
distribution: "temurin"
2828
server-id: central
2929
server-username: MAVEN_CENTRAL_USERNAME
30-
server-password: MAVEN_CENTRAL_PASSWORD
30+
server-password: MAVEN_CENTRAL_TOKEN
3131
gpg-private-key: ${{ secrets.REQSTOOL_PRIVATE_GPG_KEY }}
3232
gpg-passphrase: REQSTOOL_PRIVATE_GPG_PASSPHRASE
3333
- name: Publish to the Maven Central Repository
3434
run: mvn clean deploy
3535
env:
3636
MAVEN_CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37-
MAVEN_CENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
37+
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }}
3838
REQSTOOL_PRIVATE_GPG_PASSPHRASE: ${{ secrets.REQSTOOL_PRIVATE_GPG_KEY_PASSPHRASE }}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@
218218
</goals>
219219
</execution>
220220
</executions>
221+
<configuration>
222+
<gpgArguments>
223+
<arg>--pinentry-mode</arg>
224+
<arg>loopback</arg>
225+
</gpgArguments>
226+
</configuration>
221227
</plugin>
222228
<plugin>
223229
<groupId>org.sonatype.central</groupId>

0 commit comments

Comments
 (0)