mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-05 14:11:34 +00:00
Attempt to fix GitHub packages token.
This commit is contained in:
@ -64,12 +64,17 @@ publishing {
|
|||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
|
|
||||||
|
var githubPackagesToken = System.getenv("GITHUB_TOKEN")
|
||||||
|
if (githubPackagesToken == null) {
|
||||||
|
githubPackagesToken = project.findProperty("github.token") as String?
|
||||||
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
name = "GitHubPackages"
|
name = "GitHubPackages"
|
||||||
url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete")
|
url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete")
|
||||||
credentials {
|
credentials {
|
||||||
username = project.findProperty("github.username") as String? ?: "unknown"
|
username = project.findProperty("github.username") as String? ?: "gaypizzaspecifications"
|
||||||
password = project.findProperty("github.token") as String? ?: System.getenv("GITHUB_TOKEN")
|
password = githubPackagesToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user