Skip to content

Commit

Permalink
Merge pull request #116 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 41128ca + 4d8062e commit 4d3040d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,11 @@ jobs:
-Psigning.gnupg.passphrase='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}'
-Psigning.gnupg.keyName='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}'
-PsonatypeUsername='${{secrets.OSSRH_USERNAME}}'
-PsonatypePassword='${{secrets.OSSRH_PASSWORD}}'
-PsonatypePassword='${{secrets.OSSRH_PASSWORD}}'
env:
OSSRH_STAGING_PROFILE_ID: ${{ secrets.OSSRH_STAGING_PROFILE_ID }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
OSSRH_GPG_SECRET_KEY_ID: ${{ secrets.OSSRH_GPG_SECRET_KEY_ID }}
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ nexusPublishing {
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.findProperty("sonatypeUsername")?.toString())
username.set(project.findProperty("sonatypeUsername")?.toString())
password.set(project.findProperty("sonatypePassword")?.toString())
// stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
username.set(project.findProperty("sonatypeUsername")?.toString()?.replaceFirst("'", "")?.replaceFirst("'", ""))
password.set(project.findProperty("sonatypePassword")?.toString()?.replaceFirst("'", "")?.replaceFirst("'", ""))
}
}
}

0 comments on commit 4d3040d

Please sign in to comment.