make github maven url adjustable for workflow

This commit is contained in:
Dmytro authored and GitHub committed 2021-12-13 16:14:52 +02:00
1 parent 5c23b1d012
commit 7f4a949b6e
1 file changed
+3 -1
+3 -1
View File
@@ -464,9 +464,11 @@ artifacts {
// publishing
publishing {
repositories {
String owner = System.getenv("REPOSITORY_OWNER")
String repositoryName = System.getenv("REPOSITORY_OWNER")
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/octocat/hello-world"
url = "https://maven.pkg.github.com/$owner/$repositoryName"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")