fix maven

This commit is contained in:
C10udburst 2022-08-04 09:28:56 +02:00
parent 178f911a2f
commit 6bb86e0b15
1 changed files with 5 additions and 1 deletions

View File

@ -42,10 +42,14 @@ gradlePlugin {
publishing {
repositories {
val token = System.getenv("GITHUB_TOKEN")
val token = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
if (token != null) {
maven {
credentials {
username = "recloudstream"
password = token
}
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
}
} else {