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 }