Skip to content

Commit

Permalink
Merge pull request #114 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Update signing
  • Loading branch information
MohamedRejeb authored Sep 7, 2023
2 parents 0cc3aa6 + 9e8bf57 commit fc694dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
arguments: |
${{ matrix.target }}
closeSonatypeStagingRepository
closeAndReleaseSonatypeStagingRepository
-Psigning.gnupg.passphrase='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}'
-Psigning.gnupg.keyName='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}'
-PsonatypeUsername='${{secrets.OSSRH_USERNAME}}'
Expand Down
19 changes: 9 additions & 10 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype()
// sonatype {
// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
// stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
// println("OSSRH_USERNAME")
// println(System.getenv("OSSRH_USERNAME"))
// username.set(System.getenv("OSSRH_USERNAME"))
// password.set(System.getenv("OSSRH_PASSWORD"))
// }
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
println("OSSRH_USERNAME")
println(project.property("sonatypeUsername")?.toString())
username.set(project.property("sonatypeUsername")?.toString())
password.set(project.property("sonatypePassword")?.toString())
}
}
}

0 comments on commit fc694dd

Please sign in to comment.