Skip to content

Commit

Permalink
Update publish credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 5, 2024
1 parent 4cdeee8 commit 1e32e39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- run: chmod +x ./gradlew
- run: ./gradlew checkVersion build publish --stacktrace
env:
MAVEN_PUBLISH_TOKEN: ${{ secrets.MAVEN_PUBLISH_TOKEN }}
MAVEN_PUBLISH_CREDENTIALS: ${{ secrets.MAVEN_PUBLISH_CREDENTIALS }}
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ publishing {
}
}
repositories {
maven {
if (ENV.MAVEN_PUBLISH_TOKEN) {
url "https://maven.legacyfabric.net/"
if (ENV.MAVEN_PUBLISH_CREDENTIALS) {
repositories.maven {
url 'https://repo.legacyfabric.net/repository/legacyfabric'
credentials {
username 'legacyfabric-ci'
password ENV.MAVEN_PUBLISH_TOKEN
username ENV.MAVEN_PUBLISH_CREDENTIALS.split(":")[0]
password ENV.MAVEN_PUBLISH_CREDENTIALS.split(":")[1]
}
authentication {
basic(BasicAuthentication)
Expand Down

0 comments on commit 1e32e39

Please sign in to comment.