Skip to content

Commit

Permalink
try to fix maven deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
scrayos committed Mar 14, 2024
1 parent a4f6433 commit 12e80e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -156,6 +156,8 @@ publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifact(dokkaJavadocJar)
artifact(dokkaHtmlJar)
}
}
}
Expand Down

0 comments on commit 12e80e2

Please sign in to comment.