Commit a0c40e1 1 parent 9c2786a commit a0c40e1 Copy full SHA for a0c40e1
File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 27
27
- uses : ./.github/actions/setup
28
28
- uses : ./.github/actions/configure-git
29
29
- name : Release with JReleaser
30
- run : ./gradlew clean release -Dorg.gradle.daemon=false --stacktrace -x test -x integrationTest
30
+ run : ./gradlew jreleaserFullRelease -Dorg.gradle.daemon=false --stacktrace -x test -x integrationTest
31
31
env :
32
+ RELEASE_BUILD : ' true'
32
33
GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
33
34
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
34
35
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
Original file line number Diff line number Diff line change @@ -165,17 +165,12 @@ jreleaser {
165
165
}
166
166
}
167
167
168
- // Configure signing
169
- signing {
170
- def final encodedKey = System . getenv(' GPG_SIGNING_KEY' )
171
- def final passphrase = System . getenv(' GPG_PASSPHRASE' )
172
- if (encodedKey && passphrase) {
173
- println " Setting up GPG signing with in-memory key."
174
- def final signingKey = new String (encodedKey. decodeBase64(), " UTF-8" )
175
- useInMemoryPgpKeys(signingKey, passphrase)
168
+ if (System . getenv(' RELEASE_BUILD' ) == ' true' ) {
169
+ signing {
170
+ def final encodedKey = System . getenv(' GPG_SIGNING_KEY' )
171
+ def final signingKey = new String (encodedKey. decodeBase64())
172
+ useInMemoryPgpKeys(signingKey, System . getenv(' GPG_PASSPHRASE' ))
176
173
sign publishing. publications. maven
177
- } else {
178
- println " GPG signing key or passphrase is not set. Skipping GPG signing configuration."
179
174
}
180
175
}
181
176
You can’t perform that action at this time.
0 commit comments