From efa20a581edb2c5ab755b3a8daf0d40eb40a8387 Mon Sep 17 00:00:00 2001 From: Alexey Zagaichuk Date: Tue, 29 Nov 2022 10:13:27 +0400 Subject: [PATCH] Change execution order for closeRepository and releaseRepository tasks --- .github/workflows/push-to-master.yml | 2 +- build.gradle.kts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 {