ci: changed token to Bearer

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-07 19:22:58 +02:00
parent da26ae4c5a
commit 3d6bd1ef75
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -189,13 +189,13 @@ publishing {
name = "Codeberg"
val repoOwner = System.getenv("GITHUB_REPOSITORY_OWNER")
val serverUrl = System.getenv("GITHUB_SERVER_URL")
val accessToken = System.getenv("GITHUB_TOKEN")
url = uri("$serverUrl/api/packages/$repoOwner/maven")
authentication {
create("header", HttpHeaderAuthentication::class.java) {
val accessToken = System.getenv("GITHUB_TOKEN")
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = accessToken
value = "Bearer $accessToken"
}
}
}