From ce89fc6dc1381571f4085cf845f1c62ecceb2935 Mon Sep 17 00:00:00 2001 From: Jonas Schaub <44881147+JonasSchaub@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:41:03 +0200 Subject: [PATCH] And again --- .github/workflows/publish-to-maven-central.yml | 8 ++++---- build.gradle | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-to-maven-central.yml b/.github/workflows/publish-to-maven-central.yml index d12f70b..43169e9 100644 --- a/.github/workflows/publish-to-maven-central.yml +++ b/.github/workflows/publish-to-maven-central.yml @@ -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 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 048d7e6..ab60203 100644 --- a/build.gradle +++ b/build.gradle @@ -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 }