ci: changed to token to header

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-07 18:41:51 +02:00
parent 888d8f3f11
commit 3f8673cadb
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -192,7 +192,7 @@ publishing {
val serverUrl = System.getenv("GITHUB_SERVER_URL")
url = uri("$serverUrl/api/packages/$repoOwner/maven")
authentication {
create("token", HttpHeaderAuthentication::class.java) {
create("header", HttpHeaderAuthentication::class.java) {
val accessToken = System.getenv("GITHUB_TOKEN")
credentials(HttpHeaderCredentials::class.java) {
name = "Authorization"