File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 - name : Publish to the Maven Central Repository
2424 run : gradle publish
2525 env :
26+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_SIGNING_KEY }}
27+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_SIGNING_PASSWORD }}
2628 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
2729 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change @@ -150,9 +150,9 @@ publishing {
150150 }
151151}
152152
153- if (project . hasProperty( " signing.keyId " )) {
154- apply plugin : ' signing '
155- signing {
156- sign publishing . publications . mavenJava
157- }
153+ signing {
154+ def signingKey = findProperty( " signingKey " )
155+ def signingPassword = findProperty( " signingPassword " )
156+ useInMemoryPgpKeys(signingKey as String , signingPassword as String )
157+ sign publishing . publications . mavenJava
158158}
You can’t perform that action at this time.
0 commit comments