Fix credentials problems
This commit is contained in:
parent
9d37bdeb15
commit
f5709ce836
|
@ -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 }}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue