File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 3030 distribution : adopt
3131 java-version : 8
3232 - name : Publish package
33- run : ./gradlew publish
33+ run : |
34+ printf "$GPG_SIGNING_KEY" | base64 --decode > private.key
35+ ./gradlew publish -Psigning.keyId=$GPG_SIGNING_KEY_ID -Psigning.password=$GPG_SIGNING_PASSWORD -Psigning.secretKeyRingFile=private.key
3436 env :
3537 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
39+ GPG_SIGNING_KEY_ID : ${{ secrets.GPG_SIGNING_KEY_ID }}
40+ GPG_SIGNING_PASSWORD : ${{ secrets.GPG_SIGNING_PASSWORD }}
41+
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ plugins {
1818 id ' io.franzbecker.gradle-lombok' version ' 5.0.0'
1919 id ' maven-publish'
2020 id ' signing'
21- id " io.github.gradle-nexus.publish-plugin" version " 1.1.0"
2221}
2322
2423group ' com.gotocompany'
@@ -192,16 +191,6 @@ signing {
192191 }
193192}
194193
195- nexusPublishing {
196- repositories {
197- sonatype {
198- nexusUrl. set(uri(" https://s01.oss.sonatype.org/service/local/" ))
199- snapshotRepositoryUrl. set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
200- username = System . getenv(" MAVEN_USERNAME" )
201- password = System . getenv(" MAVEN_PASSWORD" )
202- }
203- }
204- }
205194jacocoTestCoverageVerification {
206195 afterEvaluate {
207196 getClassDirectories(). setFrom(classDirectories. files. collect {
You can’t perform that action at this time.
0 commit comments