Skip to content

Commit

Permalink
fix gpg signing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs1998 committed Sep 30, 2022
1 parent 58adb15 commit c72b44b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ jobs:

- name: Publish Maven package
uses: gradle/[email protected]
env:
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
with:
arguments: -Pversion=${{ github.event.release.tag_name }} -PmavenUsername=${{ secrets.MAVEN_USERNAME }} -PmavenPassword=${{ secrets.MAVEN_PASSWORD }} publish
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ publishing {
}

signing {
useGpgCmd()
useInMemoryPgpKeys(System.getenv("GPG_SECRET_KEY"), System.getenv("GPG_PASSPHRASE"))
sign publishing.publications.mavenJava
}

0 comments on commit c72b44b

Please sign in to comment.