Skip to content

Commit 2060b31

Browse files
committed
adding maven central as deployment target
1 parent cbd4da1 commit 2060b31

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
if: startsWith(github.ref, 'refs/tags/')
2727
run: ./gradlew publish
2828
env:
29+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,13 @@ publishing {
148148
password = System.getenv("GITHUB_TOKEN")
149149
}
150150
}
151+
maven {
152+
name = "OSSRH"
153+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
154+
credentials {
155+
username = System.getenv("MAVEN_USERNAME")
156+
password = System.getenv("MAVEN_PASSWORD")
157+
}
158+
}
151159
}
152160
}

0 commit comments

Comments
 (0)