Skip to content

Commit

Permalink
Fix credentials problems
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Apr 3, 2024
1 parent 9d37bde commit f5709ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit f5709ce

Please sign in to comment.