From 144b6fa59d1095a847095fe99ea5c6990112e216 Mon Sep 17 00:00:00 2001 From: andresmr Date: Wed, 8 May 2024 13:28:34 +0200 Subject: [PATCH] add closeAndReleaseSonatypeStagingRepository --- .github/workflows/scripts/publish-maven.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/publish-maven.sh b/.github/workflows/scripts/publish-maven.sh index a8251202b..c50f11238 100755 --- a/.github/workflows/scripts/publish-maven.sh +++ b/.github/workflows/scripts/publish-maven.sh @@ -2,8 +2,8 @@ set -x branch=$(git rev-parse --abbrev-ref HEAD) -if [ "$branch" = "main-test" ]; then - ./gradlew :designsystem:publishToSonatype -PremoveSnapshotSuffix +if [ "$branch" = "main" ]; then + ./gradlew :designsystem:publishToSonatype closeAndReleaseSonatypeStagingRepository -PremoveSnapshotSuffix else ./gradlew :designsystem:publishToSonatype fi \ No newline at end of file