Attempt to fix GitHub packages token.

This commit is contained in:
2023-01-24 20:11:07 -08:00
parent 5aed273563
commit a06be05645

View File

@ -64,12 +64,17 @@ publishing {
repositories {
mavenLocal()
var githubPackagesToken = System.getenv("GITHUB_TOKEN")
if (githubPackagesToken == null) {
githubPackagesToken = project.findProperty("github.token") as String?
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete")
credentials {
username = project.findProperty("github.username") as String? ?: "unknown"
password = project.findProperty("github.token") as String? ?: System.getenv("GITHUB_TOKEN")
username = project.findProperty("github.username") as String? ?: "gaypizzaspecifications"
password = githubPackagesToken
}
}
}