Skip to content

Commit

Permalink
fix(publish): revert publishing to project namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed May 20, 2020
1 parent ac38c81 commit 4f2aa72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gradle/publish.gradle
Expand Up @@ -24,7 +24,7 @@ jar {
'Created-By': "Gradle ${gradle.gradleVersion}",
'Git-Branch': getBranch(),
'Git-Hash': getHash()
)
)
}
}

Expand All @@ -36,10 +36,8 @@ publishing {
}
repositories {
maven {
def repo = project.findProperty("GITHUB_REPOSITORY")?: System.getenv("GITHUB_REPOSITORY")
def githubOwner, repository = repo != null ? repo.toLowerCase().tokenize("/") : project.findProperty("author")
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/${githubOwner}")
url = uri("https://maven.pkg.github.com/${project.findProperty("GITHUB_REPOSITORY")?: System.getenv("GITHUB_REPOSITORY")}")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
Expand Down

0 comments on commit 4f2aa72

Please sign in to comment.