File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ # GitHub recommends pinning actions to a commit SHA.
7+ # To get a newer version, you will need to update the SHA.
8+ # You can also reference a tag or branch, but the action may change without warning.
9+
10+ name : Publish package to the Maven Central Repository
11+ on :
12+ release :
13+ types : [created]
14+ jobs :
15+ publish :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Java
20+ uses : actions/setup-java@v4
21+ with :
22+ distribution : ' temurin'
23+ java-version : ' 21'
24+ - name : Setup Gradle
25+ uses : gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
26+ - name : Publish package
27+ run : ./gradlew publish
28+ env :
29+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_SIGNING_KEY }}
30+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_SIGNING_PASSPHRASE }}
31+ ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
32+ ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group = " de.siegmar"
12- version = " 6.1.0 "
12+ version = " 6.1.1 "
1313
1414java {
1515 toolchain {
@@ -114,5 +114,8 @@ publishing {
114114}
115115
116116signing {
117+ val signingKey: String? by project
118+ val signingPassword: String? by project
119+ useInMemoryPgpKeys(signingKey, signingPassword)
117120 sign(publishing.publications[" maven" ])
118121}
You can’t perform that action at this time.
0 commit comments