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:
Pavel Gorgulov 2025-07-21 13:14:07 +02:00 • committed by GitHub
commit da9def95c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}