diff --git a/.github/workflows/deployment-ci.yml b/.github/workflows/deployment-ci.yml index f372fdbf87f..12e5d765085 100644 --- a/.github/workflows/deployment-ci.yml +++ b/.github/workflows/deployment-ci.yml @@ -42,6 +42,8 @@ jobs: KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }} NEXUS_USER: ${{ secrets.NEXUS_USER }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + KORD_REPO_USER: ${{ secrets.KORD_REPO_USER }} + KORD_REPO_PASSWORD: ${{ secrets.KORD_REPO_PASSWORD }} SIGNING_KEY: ${{ secrets.signingKey }} SIGNING_PASSWORD: ${{ secrets.signingPassword }} steps: diff --git a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts index a001f7113cc..89913975c14 100644 --- a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts @@ -68,6 +68,17 @@ publishing { password = getenv("NEXUS_PASSWORD") } } + + if (!isRelease) { + maven { + name = "kordSnapshots" + url = uri("https://repo.kord.dev/snapshots") + credentials { + username = getenv("KORD_REPO_USER") + password = getenv("KORD_REPO_PASSWORD") + } + } + } } }