Update CI workflows configuration for debugging (#172)
* Update CI workflows configuration for debugging * Update .github/workflows/gradle-publish.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Refine Gradle and CI workflows for improved variable usage and error handling * Add validation for OSSRH credentials in Gradle publish workflow --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ad3169312c
commit
da9def95c0
1 changed files with 79 additions and 17 deletions
|
|
@ -40,12 +40,12 @@ publishing {
|
|||
|
||||
jreleaser {
|
||||
gitRootSearch = true
|
||||
strict.set(true)
|
||||
strict = true
|
||||
|
||||
signing {
|
||||
active.set(Active.ALWAYS)
|
||||
armored.set(true)
|
||||
artifacts.set(true)
|
||||
active = Active.ALWAYS
|
||||
armored = true
|
||||
artifacts = true
|
||||
}
|
||||
|
||||
deploy {
|
||||
|
|
@ -138,13 +138,12 @@ fun MavenPom.configureMavenCentralMetadata() {
|
|||
}
|
||||
|
||||
fun MavenPublication.signPublicationIfKeyPresent() {
|
||||
val keyId = project.getSensitiveProperty("SIGNING_KEY_ID")
|
||||
val signingKey = project.getSensitiveProperty("SIGNING_KEY_PRIVATE")
|
||||
val signingKeyPassphrase = project.getSensitiveProperty("SIGNING_PASSPHRASE")
|
||||
|
||||
if (!signingKey.isNullOrBlank()) {
|
||||
the<SigningExtension>().apply {
|
||||
useInMemoryPgpKeys(keyId, signingKey, signingKeyPassphrase)
|
||||
useInMemoryPgpKeys(signingKey, signingKeyPassphrase)
|
||||
|
||||
sign(this@signPublicationIfKeyPresent)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue