Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit e364bf7

Browse files
committed
fix gpg error
1 parent 5a87153 commit e364bf7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ jobs:
1515
server-id: ossrh
1616
server-username: MAVEN_USERNAME
1717
server-password: MAVEN_PASSWORD
18-
- id: install-secret-key
19-
name: Install gpg secret key
20-
run: |
21-
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
22-
gpg --list-secret-keys --keyid-format LONG
18+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
19+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2320
- name: Publish package
2421
env:
2522
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2623
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
27-
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy
24+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
25+
run: |
26+
mvn clean deploy -P deploy -Dmaven.test.skip

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@
508508
<plugin>
509509
<groupId>org.apache.maven.plugins</groupId>
510510
<artifactId>maven-gpg-plugin</artifactId>
511-
<version>1.5</version>
511+
<version>3.1.0</version>
512512
<executions>
513513
<execution>
514514
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)