Skip to content

Commit c72b44b

Browse files
committed
fix gpg signing
1 parent 58adb15 commit c72b44b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ jobs:
2626

2727
- name: Publish Maven package
2828
uses: gradle/[email protected]
29+
env:
30+
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
31+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2932
with:
3033
arguments: -Pversion=${{ github.event.release.tag_name }} -PmavenUsername=${{ secrets.MAVEN_USERNAME }} -PmavenPassword=${{ secrets.MAVEN_PASSWORD }} publish

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ publishing {
8787
}
8888

8989
signing {
90-
useGpgCmd()
90+
useInMemoryPgpKeys(System.getenv("GPG_SECRET_KEY"), System.getenv("GPG_PASSPHRASE"))
9191
sign publishing.publications.mavenJava
9292
}

0 commit comments

Comments
 (0)