Skip to content

Commit

Permalink
ci: run publish and closeAndRelease in one execution
Browse files Browse the repository at this point in the history
  • Loading branch information
tommytroen committed Feb 24, 2020
1 parent 8678be8 commit 379511f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,13 @@ tasks {
dependsOn("shadowJar")
}

/* "publish" {
dependsOn("shadowJar")
dependsOn("jibDockerBuild")
}*/
"publish" {
dependsOn("initializeSonatypeStagingRepository")
}

"publishToSonatype" {
dependsOn("publish")
}

withType<Sign>().configureEach {
onlyIf {
Expand Down

0 comments on commit 379511f

Please sign in to comment.