File tree 2 files changed +36
-1
lines changed
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 {
9
9
}
10
10
11
11
group = " de.siegmar"
12
- version = " 6.1.0 "
12
+ version = " 6.1.1 "
13
13
14
14
java {
15
15
toolchain {
@@ -114,5 +114,8 @@ publishing {
114
114
}
115
115
116
116
signing {
117
+ val signingKey: String? by project
118
+ val signingPassword: String? by project
119
+ useInMemoryPgpKeys(signingKey, signingPassword)
117
120
sign(publishing.publications[" maven" ])
118
121
}
You can’t perform that action at this time.
0 commit comments