Skip to content

Commit

Permalink
Merge pull request #69 from mrmike/fix/use-in-memory-key
Browse files Browse the repository at this point in the history
Use in memory key
  • Loading branch information
mrmike committed Mar 28, 2022
2 parents cd5621d + fc345d5 commit 16d5586
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/deploy.yml
Expand Up @@ -26,13 +26,3 @@ jobs:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_GPG_KEY: ${{ secrets.SIGNING_GPG_KEY }}

- name: Close and Release Sonatype Staging Repository
run: ./gradlew closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_GPG_KEY: ${{ secrets.SIGNING_GPG_KEY }}
9 changes: 5 additions & 4 deletions scripts/publish-module.gradle
Expand Up @@ -59,10 +59,11 @@ afterEvaluate {
}
}

ext["signing.keyId"] = rootProject.ext["signing.keyId"]
ext["signing.password"] = rootProject.ext["signing.password"]
ext["signing.key"] = rootProject.ext["signing.key"]

signing {
useInMemoryPgpKeys(
rootProject.ext["signing.keyId"],
rootProject.ext["signing.key"],
rootProject.ext["signing.password"],
)
sign publishing.publications
}

0 comments on commit 16d5586

Please sign in to comment.