diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 8659af05..43df3b40 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -56,6 +56,5 @@ jobs: export GPG_TTY=$(tty) && echo ${GPG_KEY_BASE64} | base64 --decode | gpg --fast-import --batch NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3) echo "New version: ${NEW_VERSION}" - ./gradlew -Pversion=${NEW_VERSION} publishToSonatype --info - ./gradlew getStagingProfile closeAndReleaseRepository --info + ./gradlew -Pversion=${NEW_VERSION} publishToSonatype closeAndReleaseRepository --info diff --git a/build.gradle.kts b/build.gradle.kts index 5a1de6e3..36496610 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -190,10 +190,13 @@ tasks { dependsOn("shadowJar") } - /* "publish" { - dependsOn("shadowJar") - dependsOn("jibDockerBuild") - }*/ + "publish" { + dependsOn("initializeSonatypeStagingRepository") + } + + "publishToSonatype" { + dependsOn("publish") + } withType().configureEach { onlyIf {