Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Jul 5, 2023
1 parent 9232b26 commit ce89fc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
#MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}
- name: Publish with Gradle
env:
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
signingKey: ${{ secrets.PGP_SECRET }}
signingPassword: ${{ secrets.PGP_PASSPHRASE }}
MAVEN_PASSWORD: ${{secrets.OSSRHPASSWORD}}
MAVEN_USERNAME: ${{secrets.OSSRHUSERNAME}}
signingKey: ${{secrets.PGP_SECRET}}
signingPassword: ${{secrets.PGP_PASSPHRASE}}
run: ./gradlew publish --no-daemon
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ signing {
//uses keys and passwords declared in userhome/.gradle/gradle.properties, works locally
//sign publishing.publications.mavenJava

def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
//def signingKey = findProperty("signingKey")
def signingKey = System.getenv("signingKey")
//def signingPassword = findProperty("signingPassword")
def signingPassword = System.getenv("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}

0 comments on commit ce89fc6

Please sign in to comment.