From 975ba1e36493d835de62eda2259918ff9b31ad89 Mon Sep 17 00:00:00 2001 From: Luca Kellermann Date: Mon, 29 Jul 2024 17:55:52 +0200 Subject: [PATCH] Publish snapshots to https://repo.kord.dev/snapshots --- .github/workflows/deployment-ci.yml | 2 ++ buildSrc/src/main/kotlin/kord-publishing.gradle.kts | 11 +++++++++++ 2 files changed, 13 insertions(+) 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") + } + } + } } }