diff --git a/build.gradle.kts b/build.gradle.kts index a0f92e5..eecb2d7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {