Skip to content

Commit

Permalink
CloudSmith Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Jan 30, 2025
1 parent 9892fb5 commit 28eeb69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to GitHub Packages
name: Publish package to CloudSmith Maven
on:
workflow_dispatch:
release:
Expand All @@ -23,4 +23,4 @@ jobs:
chmod +x gradlew
./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLOUDSMITH_MAVEN_TOKEN: ${{ secrets.CLOUDSMITH_MAVEN_TOKEN }}
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit 28eeb69

Please sign in to comment.