Skip to content

Commit

Permalink
Try using content
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Feb 29, 2024
1 parent 3aafe13 commit 75e92ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
3 changes: 2 additions & 1 deletion scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ afterEvaluate {

signing {
def signingKeyId = rootProject.ext["signing.keyId"]
def signingKey = rootProject.ext["signing.key"]
def signingPassword = rootProject.ext["signing.password"]
useInMemoryPgpKeys(signingKeyId, signingPassword)
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign publishing.publications
}
2 changes: 2 additions & 0 deletions scripts/publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["sonatypeStagingProfileId"] = ''
ext["signing.keyId"] = '0C762F0D'
ext["signing.key"] = '---'
ext["signing.password"] = 'dsLCfZhaoHbgqgNeRHuAY'

File secretPropsFile = project.rootProject.file('local.properties')
Expand All @@ -17,6 +18,7 @@ if (secretPropsFile.exists()) {
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
ext["signing.keyId"] = System.getenv('GPG_KEY_NAME')
ext["signing.key"] = System.getenv('GPG_KEY_CONTENTS')
ext["signing.password"] = System.getenv('GPG_PASSPHRASE')
}

Expand Down

0 comments on commit 75e92ee

Please sign in to comment.