File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
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 @@ -182,5 +182,8 @@ publishing {
182
182
}
183
183
184
184
signing {
185
+ val signingKey: String? by project
186
+ val signingPassword: String? by project
187
+ useInMemoryPgpKeys(signingKey, signingPassword)
185
188
sign(publishing.publications[" maven" ])
186
189
}
You can’t perform that action at this time.
0 commit comments