diff --git a/.github/workflows/scripts/publish-maven.sh b/.github/workflows/scripts/publish-maven.sh index c50f11238..339d64701 100755 --- a/.github/workflows/scripts/publish-maven.sh +++ b/.github/workflows/scripts/publish-maven.sh @@ -5,5 +5,6 @@ branch=$(git rev-parse --abbrev-ref HEAD) if [ "$branch" = "main" ]; then ./gradlew :designsystem:publishToSonatype closeAndReleaseSonatypeStagingRepository -PremoveSnapshotSuffix else + echo "BRANCH_NAME: $branch" ./gradlew :designsystem:publishToSonatype fi \ No newline at end of file diff --git a/convention-plugins/src/main/kotlin/convention.publication.gradle.kts b/convention-plugins/src/main/kotlin/convention.publication.gradle.kts index 1d2b0801e..88915f0a4 100644 --- a/convention-plugins/src/main/kotlin/convention.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/convention.publication.gradle.kts @@ -58,8 +58,11 @@ publishing { } // Signing artifacts. Signing.* extra properties values will be used -/*signing { - setRequired({ !version.toString().endsWith("-SNAPSHOT") }) +signing { + setRequired({ + println("VERSION_NAME: $version") + !version.toString().endsWith("-SNAPSHOT") + }) useInMemoryPgpKeys(signingPrivateKey, signingPassword) sign(publishing.publications) } @@ -69,4 +72,4 @@ publishing { tasks.withType().configureEach { val signingTasks = tasks.withType() mustRunAfter(signingTasks) -}*/ +}