Skip to content

Commit

Permalink
Change execution order for closeRepository and releaseRepository tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis2004 committed Nov 29, 2022
1 parent 106e9c3 commit efa20a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Sign> {
Expand Down

0 comments on commit efa20a5

Please sign in to comment.