Skip to content

Commit

Permalink
Try to wire signing into publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Oct 11, 2023
1 parent 24885f2 commit adb4482
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-android-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
working-directory: ./src/AndroidClient
run: ./gradlew android:publishAllPublicationsToOSSRHRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.secretKeyRingFile=${{ env.SIGNING_SECRET_KEY_RING_FILE }}
run: ./gradlew android:publishAllPublicationsToOSSRHRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.secretKeyRingFile=${{ env.SIGNING_SECRET_KEY_RING_FILE }} -Psigning.password=
2 changes: 1 addition & 1 deletion .github/workflows/publish-client-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
working-directory: ./src/AndroidClient
run: ./gradlew client:publishAllPublicationsToOSSRHRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.secretKeyRingFile=${{ env.SIGNING_SECRET_KEY_RING_FILE }}
run: ./gradlew client:publishAllPublicationsToOSSRHRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.secretKeyRingFile=${{ env.SIGNING_SECRET_KEY_RING_FILE }} -Psigning.password=
1 change: 1 addition & 0 deletions src/AndroidClient/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ if (project.hasProperty('signing.keyId')) {
println "Signing enabled"
signing {
sign publishing.publications.mavenJava
useInMemoryPgpKeys(findProperty("signing.keyId") as String, findProperty("signing.password") as String)
}
} else {
println "Signing disabled"
Expand Down
3 changes: 3 additions & 0 deletions src/AndroidClient/client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ if (project.hasProperty('signing.keyId')) {
println "Signing enabled"
signing {
sign publishing.publications.mavenJava
useInMemoryPgpKeys(findProperty("signing.keyId") as String, findProperty("signing.password") as String)

// useGpgCmd(findProperty("signing.secretKeyRingFile"))
}
} else {
println "Signing disabled"
Expand Down

0 comments on commit adb4482

Please sign in to comment.