File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ jobs:
151151 S3_BUILD_CACHE_SECRET_KEY : ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
152152 BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
153153 BINTRAY_API_KEY : ${{ secrets.BINTRAY_API_KEY }}
154+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
155+ GPG_PASSWORD : ${{ secrets.GPG_PASSWORD }}
154156 run : ./gradlew snapshot --stacktrace
155157
156158 issue :
Original file line number Diff line number Diff line change 7474 BINTRAY_API_KEY : ${{ secrets.BINTRAY_API_KEY }}
7575 GRGIT_USER : ${{ github.actor }}
7676 GRGIT_PASS : ${{ secrets.GITHUB_TOKEN }}
77+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
78+ GPG_PASSWORD : ${{ secrets.GPG_PASSWORD }}
Original file line number Diff line number Diff line change 2626 BINTRAY_USER : ${{ secrets.BINTRAY_USER }}
2727 BINTRAY_API_KEY : ${{ secrets.BINTRAY_API_KEY }}
2828 GRGIT_USER : ${{ github.actor }}
29- GRGIT_PASS : ${{ secrets.GITHUB_TOKEN }}
29+ GRGIT_PASS : ${{ secrets.GITHUB_TOKEN }}
30+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
31+ GPG_PASSWORD : ${{ secrets.GPG_PASSWORD }}
Original file line number Diff line number Diff line change 11apply plugin : ' maven-publish'
2+ apply plugin : ' signing'
23apply plugin : ' com.jfrog.artifactory'
34apply plugin : ' com.jfrog.bintray'
45
@@ -103,10 +104,6 @@ bintray {
103104 name = project. version
104105 released = new Date ()
105106
106- gpg {
107- sign = true
108- }
109-
110107 mavenCentralSync {
111108 user = System . getenv(" SONATYPE_USER" )
112109 password = System . getenv(" SONATYPE_KEY" )
@@ -133,3 +130,12 @@ artifactoryPublish {
133130 enabled = version. toString(). contains(' SNAPSHOT' )
134131 publications(' maven' )
135132}
133+
134+ tasks. withType(Sign ). configureEach {
135+ onlyIf { System . getenv(" CI" ) != null }
136+ }
137+
138+ signing {
139+ useInMemoryPgpKeys(System . getenv(" GPG_PRIVATE_KEY" ), System . getenv(" GPG_PASSWORD" ))
140+ sign publishing. publications. maven
141+ }
You can’t perform that action at this time.
0 commit comments