Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit 28eeb69

Browse files
committed
CloudSmith Maven
1 parent 9892fb5 commit 28eeb69

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish package to GitHub Packages
1+
name: Publish package to CloudSmith Maven
22
on:
33
workflow_dispatch:
44
release:
@@ -23,4 +23,4 @@ jobs:
2323
chmod +x gradlew
2424
./gradlew publish
2525
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
CLOUDSMITH_MAVEN_TOKEN: ${{ secrets.CLOUDSMITH_MAVEN_TOKEN }}

build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ publishing {
7575
// The repositories here will be used for publishing your artifact, not for
7676
// retrieving dependencies.
7777
maven {
78-
name = "GitHubPackages"
79-
url = "https://maven.pkg.github.com/texblock/foxifiednetworking"
78+
name = "cloudsmith"
79+
url = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
80+
def releasesRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
81+
def snapshotsRepoUrl = "https://maven.cloudsmith.io/thinkingstudio/foxifiednetworking/"
82+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
8083
credentials {
81-
username = System.getenv("GITHUB_ACTOR")
82-
password = System.getenv("GITHUB_TOKEN")
84+
username = 'tex-true'
85+
password = System.getenv("CLOUDSMITH_MAVEN_TOKEN")
8386
}
8487
}
8588
}

0 commit comments

Comments
 (0)