Skip to content

Commit

Permalink
Publish to KordEx repo too
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Jul 26, 2024
1 parent 1be2427 commit 1fc8cc7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
OSSRH_USERNAME: "${{ secrets.OSSRH_USERNAME }}"
OSSRH_PASSWORD: "${{ secrets.OSSRH_PASSWORD }}"

KORDEX_MAVEN_USERNAME: "${{ secrets.KORDEX_MAVEN_USERNAME }}"
KORDEX_MAVEN_PASSWORD: "${{ secrets.KORDEX_MAVEN_PASSWORD }}"

TOKEN: "${{ secrets.TOKEN }}"

with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
OSSRH_USERNAME: "${{ secrets.OSSRH_USERNAME }}"
OSSRH_PASSWORD: "${{ secrets.OSSRH_PASSWORD }}"

KORDEX_MAVEN_USERNAME: "${{ secrets.KORDEX_MAVEN_USERNAME }}"
KORDEX_MAVEN_PASSWORD: "${{ secrets.KORDEX_MAVEN_PASSWORD }}"

TOKEN: "${{ secrets.TOKEN }}"

with:
Expand Down
20 changes: 20 additions & 0 deletions buildSrc/src/main/kotlin/published-module.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ afterEvaluate {

version = project.version
}

maven {
name = "KordEx"

url = if (project.version.toString().contains("SNAPSHOT")) {
uri("https://repo.kordex.dev/snapshots/")
} else {
uri("https://repo.kordex.dev/releases/")
}

credentials {
username = project.findProperty("ossrhUsername") as String?
?: System.getenv("KORDEX_MAVEN_USERNAME")

password = project.findProperty("ossrhPassword") as String?
?: System.getenv("KORDEX_MAVEN_PASSWORD")
}

version = project.version
}
}

publications {
Expand Down

0 comments on commit 1fc8cc7

Please sign in to comment.