Skip to content

Commit

Permalink
Try fix gpg sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Saloed committed Apr 28, 2023
1 parent 5a5db9b commit 938f68f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tmp-maven-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
with:
arguments: |
:ksmt-core:publishAllPublicationsToCentralRepository
-PmavenDeployUrl="https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
-PmavenDeployUrl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-PmavenDeployUser=${{ secrets.MAVEN_CENTRAL_USER }}
-PmavenDeployPassword=${{ secrets.MAVEN_CENTRAL_PASSWORD }}
# -PmavenSignGpgKey="${{ secrets.MAVEN_SIGN_GPG_KEY }}"
# -PmavenSignGpgPassword="${{ secrets.MAVEN_SIGN_GPG_PASSWORD }}"
-PmavenSignGpgKey="${{ secrets.MAVEN_SIGN_GPG_KEY }}"
-PmavenSignGpgPassword=${{ secrets.MAVEN_SIGN_GPG_PASSWORD }}
# - name: Upload release artifacts
# uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Publications.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fun MavenPublication.addKsmtPom() {

fun MavenPublication.signKsmtPublication(project: Project) = with(project) {
signing {
val gpgKey = project.stringProperty("mavenSignGpgKey")
val gpgKey = project.stringProperty("mavenSignGpgKey")?.removeSurrounding("\"")
val gpgPassword = project.stringProperty("mavenSignGpgPassword")

if (gpgKey != null && gpgPassword != null) {
Expand Down

0 comments on commit 938f68f

Please sign in to comment.