Skip to content

Commit 4c46a8a

Browse files
committed
prepare release
1 parent 5639a7b commit 4c46a8a

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 }}

build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "de.siegmar"
12-
version = "6.1.0"
12+
version = "6.1.1"
1313

1414
java {
1515
toolchain {
@@ -114,5 +114,8 @@ publishing {
114114
}
115115

116116
signing {
117+
val signingKey: String? by project
118+
val signingPassword: String? by project
119+
useInMemoryPgpKeys(signingKey, signingPassword)
117120
sign(publishing.publications["maven"])
118121
}

0 commit comments

Comments
 (0)