Skip to content

Commit 4a0e254

Browse files
committed
Switch to repo level signing key (the org level one is not working for maven)
1 parent abedd25 commit 4a0e254

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
2828
server-username: SONATYPE_USERNAME
2929
server-password: SONATYPE_PASSWORD
30-
gpg-private-key: ${{ secrets.PGP_SECRET }} # has to be read directly from secrets
30+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
3131
gpg-passphrase: MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
3232

3333
- name: Release
3434
run: mvn -ntp -B release:clean release:prepare release:perform -P release -Darguments="-DskipTests"
3535
env:
3636
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3737
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
38-
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
38+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

.github/workflows/snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
2020
server-username: SONATYPE_USERNAME
2121
server-password: SONATYPE_PASSWORD
22-
gpg-private-key: ${{ secrets.PGP_SECRET }} # has to be read directly from secrets
22+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
2323
gpg-passphrase: MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
2424
- name: Deploy snapshot
2525
run: mvn -ntp -B clean deploy -P release -Darguments="-DskipTests"
2626
env:
2727
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
2828
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
29-
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
29+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)