diff --git a/.github/workflows/push-to-master.yml b/.github/workflows/push-to-master.yml index e1ca06753..b8c474ea9 100644 --- a/.github/workflows/push-to-master.yml +++ b/.github/workflows/push-to-master.yml @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build, upload release version to Maven Central and create git release tag with Gradle - run: ./gradlew detekt final closeAndReleaseRepository printFinalReleaseNote + run: ./gradlew detekt final closeRepository releaseRepository printFinalReleaseNote env: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} diff --git a/build.gradle.kts b/build.gradle.kts index 16f120325..c6b157800 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -81,6 +81,13 @@ tasks { named("release").get().apply { dependsOn(named("publish").get()) } + + named("closeRepository").get().apply { + dependsOn(named("final").get()) + } + named("releaseRepository").get().apply { + dependsOn(named("final").get()) + } } tasks.withType {