Skip to content

Commit

Permalink
release: add pgp key id
Browse files Browse the repository at this point in the history
  • Loading branch information
stackmystack committed May 17, 2023
1 parent 80490d0 commit a8b6ffa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_KEY: ${{ secrets.PGP_KEY }}
PGP_PASSWORD: ${ secrets.PGP_PASSWORD }}
1 change: 1 addition & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ javadoc {
}

signing {
def signingKeyId = System.getenv("PGP_KEY_ID")
def signingKey = System.getenv("PGP_KEY")
def signingPassword = System.getenv("PGP_PASSWORD")
useInMemoryPgpKeys(signingKey, signingPassword)
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications.mavenJava
}

0 comments on commit a8b6ffa

Please sign in to comment.