Skip to content

Commit

Permalink
fixed undefined maven repository properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vlahoda committed Aug 2, 2022
1 parent 8c0f706 commit 687ed15
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Expand Up @@ -251,10 +251,13 @@ allprojects {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/ceskaexpedice/kramerius"
credentials {
//username = System.getenv("GITHUB_ACTOR")
//password = System.getenv("GITHUB_TOKEN")
username = "$githubRepositoryUser"
password = "$githubRepositoryToken"
if (project.hasProperty('githubRepositoryUser') && project.hasProperty('githubRepositoryToken')) {
username = "$githubRepositoryUser"
password = "$githubRepositoryToken"
} else {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
Expand Down

0 comments on commit 687ed15

Please sign in to comment.