Skip to content

Commit f9d569e

Browse files
committed
Change execution order for closeRepository and releaseRepository tasks
1 parent 106e9c3 commit f9d569e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/push-to-master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Build, upload release version to Maven Central and create git release tag with Gradle
37-
run: ./gradlew detekt final closeAndReleaseRepository printFinalReleaseNote
37+
run: ./gradlew detekt final closeRepository releaseRepository printFinalReleaseNote
3838
env:
3939
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
4040
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}

build.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ tasks {
7878
}
7979

8080
// Publish artifacts to Maven Central before pushing new git tag to repo
81-
named("release").get().apply {
82-
dependsOn(named("publish").get())
81+
named("closeRepository").get().apply {
82+
dependsOn(named("final").get())
83+
}
84+
named("releaseRepository").get().apply {
85+
dependsOn(named("final").get())
8386
}
8487
}
8588

0 commit comments

Comments
 (0)