Skip to content

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
run: |
5353
./gradlew --no-daemon --stacktrace --max-workers=1 --info publish closeAndReleaseStagingRepository
5454
env:
55-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME_Y }}
56-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_Y }}
55+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME_H }}
56+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_H }}
5757
SDK_VERSION: ${{ env.VERSION }}
5858
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEY_ID }}
5959
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ version = System.getenv("SDK_VERSION") ?: (
3030
nexusPublishing {
3131
repositories {
3232
sonatype {
33+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
34+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
3335
username.set(System.getenv("MAVEN_USERNAME"))
3436
password.set(System.getenv("MAVEN_PASSWORD"))
3537
}

buildSrc/src/main/kotlin/sdk.publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ configure<PublishingExtension> {
5656
repositories {
5757
maven {
5858
name = "OSSRH"
59-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
59+
url = uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
6060
credentials {
6161
username = System.getenv("MAVEN_USERNAME")
6262
password = System.getenv("MAVEN_PASSWORD")

0 commit comments

Comments
 (0)