From 28eeb69dd8b05788af74da3bb00585c5aadd39e6 Mon Sep 17 00:00:00 2001 From: TexTrue <65154269+TexBlock@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:14:06 +0800 Subject: [PATCH] CloudSmith Maven --- .github/workflows/publish.yml | 4 ++-- build.gradle | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce20e0e..bb9e96e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish package to GitHub Packages +name: Publish package to CloudSmith Maven on: workflow_dispatch: release: @@ -23,4 +23,4 @@ jobs: chmod +x gradlew ./gradlew publish env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + CLOUDSMITH_MAVEN_TOKEN: ${{ secrets.CLOUDSMITH_MAVEN_TOKEN }} \ No newline at end of file diff --git a/build.gradle b/build.gradle index ffc5f4b..2d41575 100644 --- a/build.gradle +++ b/build.gradle @@ -75,11 +75,14 @@ publishing { // The repositories here will be used for publishing your artifact, not for // retrieving dependencies. maven { - name = "GitHubPackages" - url = "https://maven.pkg.github.com/texblock/foxifiednetworking" + name = "cloudsmith" + url = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/" + def releasesRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/" + def snapshotsRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials { - username = System.getenv("GITHUB_ACTOR") - password = System.getenv("GITHUB_TOKEN") + username = 'tex-true' + password = System.getenv("CLOUDSMITH_MAVEN_TOKEN") } } }