Tweak auth
ci/woodpecker/push/pages Pipeline was successful Details
ci/woodpecker/push/gradle Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-01 18:04:34 +01:00
parent 82edede409
commit 326fa7eba6
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 8 additions and 8 deletions

View File

@ -22,12 +22,12 @@ publishing {
maven(project.property("maven") as String) {
name = "dynamic"
credentials(HttpHeaderCredentials::class) {
name = System.getenv()["MAVEN_NAME"]
value = System.getenv()["MAVEN_TOKEN"]
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
}
authentication {
create<HttpHeaderAuthentication>("header")
create<BasicAuthentication>("basic")
}
}
}

View File

@ -11,12 +11,12 @@ publishing {
url = uri(project.property("maven").toString())
name = "dynamic"
credentials(HttpHeaderCredentials::class) {
name = System.getenv()["MAVEN_NAME"]
value = System.getenv()["MAVEN_TOKEN"]
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
}
authentication {
create<HttpHeaderAuthentication>("header")
create<BasicAuthentication>("basic")
}
}
}