Skip to content

Commit 379511f

Browse files
committed
1 parent 8678be8 commit 379511f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/publish-release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,5 @@ jobs:
5656
export GPG_TTY=$(tty) && echo ${GPG_KEY_BASE64} | base64 --decode | gpg --fast-import --batch
5757
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
5858
echo "New version: ${NEW_VERSION}"
59-
./gradlew -Pversion=${NEW_VERSION} publishToSonatype --info
60-
./gradlew getStagingProfile closeAndReleaseRepository --info
59+
./gradlew -Pversion=${NEW_VERSION} publishToSonatype closeAndReleaseRepository --info
6160

build.gradle.kts

+7-4
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,13 @@ tasks {
190190
dependsOn("shadowJar")
191191
}
192192

193-
/* "publish" {
194-
dependsOn("shadowJar")
195-
dependsOn("jibDockerBuild")
196-
}*/
193+
"publish" {
194+
dependsOn("initializeSonatypeStagingRepository")
195+
}
196+
197+
"publishToSonatype" {
198+
dependsOn("publish")
199+
}
197200

198201
withType<Sign>().configureEach {
199202
onlyIf {

0 commit comments

Comments
 (0)