Skip to content

Commit bc9b65a

Browse files
committed
Automatically release Maven Central publication
1 parent 5cc8a70 commit bc9b65a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: gradle/actions/setup-gradle@v5
3030

3131
- name: Publish to Maven Central
32-
run: ./gradlew publishAndReleaseToMavenCentral -Pversion=${{ github.ref_name }} --no-daemon --stacktrace --no-configuration-cache
32+
run: ./gradlew publishAndReleaseToMavenCentral -Pversion=${{ github.ref_name }} --stacktrace --no-configuration-cache
3333
env:
3434
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
3535
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_TOKEN }}

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ kotlinter {
142142
reporters = arrayOf(ReporterType.html.name)
143143
}
144144

145-
146145
dokka {
147146
dokkaPublications.html {
148147
moduleName.set("Docker Kotlin")
@@ -161,4 +160,9 @@ dokka {
161160
remoteLineSuffix.set("#L")
162161
}
163162
}
163+
}
164+
165+
mavenPublishing {
166+
publishToMavenCentral(automaticRelease = true)
167+
signAllPublications()
164168
}

0 commit comments

Comments
 (0)