From bbd541abe0e73af2f25a086a49bdf74e2f564c83 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 29 Mar 2023 13:21:40 +0100 Subject: [PATCH] Added repo.auxilor.io --- .github/workflows/publish-release.yml | 2 ++ eco-api/build.gradle.kts | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index da70728e..10e3edb5 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -28,6 +28,8 @@ jobs: - name: Publish artifact env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} # The GITHUB_REF tag comes in the format 'refs/tags/xxx'. # So if we split on '/' and take the 3rd value, we can get the release name. diff --git a/eco-api/build.gradle.kts b/eco-api/build.gradle.kts index 8f68532b..2469709d 100644 --- a/eco-api/build.gradle.kts +++ b/eco-api/build.gradle.kts @@ -39,4 +39,17 @@ publishing { } } } + + publishing { + repositories { + maven { + name = "Auxilor" + url = uri("https://repo.auxilor.io/repository/maven-releases/") + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + } + } + } }