Skip to content

Commit

Permalink
Try memory gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Feb 29, 2024
1 parent 523b81f commit e258d76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
fake-publish:
name: Sign release publication - Main
name: Fake publish - Main
runs-on: macos-latest
steps:
- name: Check out code
Expand All @@ -28,7 +28,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

# Runs upload, and then closes & releases the repository
- name: Publish to MavenLocal
- name: Sign release
run: ./gradlew signReleasePublication
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
8 changes: 4 additions & 4 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ afterEvaluate {
}
}

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

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

sign publishing.publications
}
2 changes: 1 addition & 1 deletion scripts/publish-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (secretPropsFile.exists()) {
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
ext["signing.keyId"] = System.getenv('GPG_KEY_NAME')
ext["signing.password"] = System.getenv('GPG_PASSPHRASE')
ext["signing.secretKeyRingFile"] = "../secrets.gpg"
ext["signing.secretKeyRingFile"] = "../secret.gpg"
}

// Set up Sonatype repository
Expand Down

0 comments on commit e258d76

Please sign in to comment.