Skip to content

Commit c4bc06a

Browse files
committed
Fix release publishing
1 parent 8c7e823 commit c4bc06a

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

.github/workflows/ci-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
3636
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
3737
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
38-
run: ./gradlew publishSnapshot
38+
run: ./gradlew publishToSonatype

.github/workflows/ci-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
2727
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
2828
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
29-
run: ./gradlew publishRelease
29+
run: ./gradlew publishToSonatype closeAndReleaseStagingRepositories

build.gradle.kts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,3 @@ nexusPublishing {
3939
}
4040
}
4141
}
42-
43-
tasks.register("publishRelease") {
44-
group = "publishing"
45-
description = "Publish to Maven Central (iff this is a release version)."
46-
47-
onlyIf { !isSnapshot() }
48-
49-
if (!isSnapshot()) {
50-
dependsOn("publishToSonatype", "closeAndReleaseStagingRepositories")
51-
}
52-
}
53-
54-
tasks.register("publishSnapshot") {
55-
group = "publishing"
56-
description = "Publish to Maven Central (iff this is a snapshot version)."
57-
58-
onlyIf { isSnapshot() }
59-
60-
if (isSnapshot()) {
61-
dependsOn("publishToSonatype")
62-
}
63-
}
64-
65-
fun isSnapshot() = version.toString().endsWith("-SNAPSHOT")

0 commit comments

Comments
 (0)