diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45cd804..ee21a89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: - name: Publish package run: ./gradlew dokkaHtml publish env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup Pages diff --git a/build.gradle.kts b/build.gradle.kts index 7a01c57..e15d4ee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -136,10 +136,10 @@ publishing { repositories { maven { name = "OSSRH" - url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") + url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") credentials { - username = System.getenv("MAVEN_USERNAME") - password = System.getenv("MAVEN_PASSWORD") + username = System.getenv("OSSRH_USERNAME") + password = System.getenv("OSSRH_PASSWORD") } } maven { @@ -156,6 +156,8 @@ publishing { publications { create("maven") { from(components["java"]) + artifact(dokkaJavadocJar) + artifact(dokkaHtmlJar) } } }