ci: moved back

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-07 20:18:28 +02:00
parent 46f4bc8289
commit 6442cf57e4
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

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