Fix credentials problems

This commit is contained in:
Lukas Rieger (Blue) 2024-04-03 22:55:28 +02:00
parent 9d37bdeb15
commit f5709ce836
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
2 changed files with 5 additions and 5 deletions

View File

@ -22,5 +22,5 @@ jobs:
- name: Build with Gradle
run: ./gradlew publish
env:
bluecoloredUsername: ${{ secrets.BLUECOLORED_USERNAME }}
bluecoloredPassword: ${{ secrets.BLUECOLORED_PASSWORD }}
BLUECOLORED_USERNAME: ${{ secrets.BLUECOLORED_USERNAME }}
BLUECOLORED_PASSWORD: ${{ secrets.BLUECOLORED_PASSWORD }}

View File

@ -116,9 +116,9 @@ publishing {
val snapshotsRepoUrl = "https://repo.bluecolored.de/snapshots"
url = uri(if (version == lastVersion) releasesRepoUrl else snapshotsRepoUrl)
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
credentials {
username = project.findProperty("bluecoloredUsername") as String? ?: System.getenv("BLUECOLORED_USERNAME")
password = project.findProperty("bluecoloredPassword") as String? ?: System.getenv("BLUECOLORED_PASSWORD")
}
}
}