Skip to content

Commit f5709ce

Browse files
committed
Fix credentials problems
1 parent 9d37bde commit f5709ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
- name: Build with Gradle
2323
run: ./gradlew publish
2424
env:
25-
bluecoloredUsername: ${{ secrets.BLUECOLORED_USERNAME }}
26-
bluecoloredPassword: ${{ secrets.BLUECOLORED_PASSWORD }}
25+
BLUECOLORED_USERNAME: ${{ secrets.BLUECOLORED_USERNAME }}
26+
BLUECOLORED_PASSWORD: ${{ secrets.BLUECOLORED_PASSWORD }}

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ publishing {
116116
val snapshotsRepoUrl = "https://repo.bluecolored.de/snapshots"
117117
url = uri(if (version == lastVersion) releasesRepoUrl else snapshotsRepoUrl)
118118

119-
credentials(PasswordCredentials::class)
120-
authentication {
121-
create<BasicAuthentication>("basic")
119+
credentials {
120+
username = project.findProperty("bluecoloredUsername") as String? ?: System.getenv("BLUECOLORED_USERNAME")
121+
password = project.findProperty("bluecoloredPassword") as String? ?: System.getenv("BLUECOLORED_PASSWORD")
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)