ci: changed repository path for maven packages

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

View file

@ -188,8 +188,9 @@ publishing {
maven {
name = "Forgejo"
val repoOwner = System.getenv("GITHUB_REPOSITORY_OWNER")
val apiEndpoint = System.getenv("GITHUB_API_URL")
url = uri("$apiEndpoint/packages/$repoOwner/maven")
// val apiEndpoint = System.getenv("GITHUB_API_URL")
val serverUrl = System.getenv("GITHUB_SERVER_URL")
url = uri("$serverUrl/api/packages/$repoOwner/maven")
authentication {
create("token", HttpHeaderAuthentication::class.java) {
val accessToken = System.getenv("GITHUB_TOKEN")