mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
fix maven
This commit is contained in:
parent
178f911a2f
commit
6bb86e0b15
1 changed files with 5 additions and 1 deletions
|
@ -42,10 +42,14 @@ gradlePlugin {
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
val token = System.getenv("GITHUB_TOKEN")
|
val token = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
|
||||||
|
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
maven {
|
maven {
|
||||||
|
credentials {
|
||||||
|
username = "recloudstream"
|
||||||
|
password = token
|
||||||
|
}
|
||||||
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
setUrl("https://maven.pkg.github.com/recloudstream/gradle")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue