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 { 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
} }
} }
} }