Skip to content

Commit

Permalink
Pass credentials to the Gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed May 23, 2024
1 parent 8b92a06 commit 707cb2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ jobs:
env:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
MAVEN_CENTRAL_DEPLOY_USER: ${{ secrets.MAVEN_CENTRAL_DEPLOY_USER }}
MAVEN_CENTRAL_DEPLOY_PASSWORD: ${{ secrets.MAVEN_CENTRAL_DEPLOY_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ internal fun Project.setupPublishing(component: SoftwareComponent) {

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/sipgate/dachlatten")
name = "Maven Central"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = "sipgate"
password = System.getenv("GITHUB_TOKEN")
username = System.getenv("MAVEN_CENTRAL_DEPLOY_USER")
password = System.getenv("MAVEN_CENTRAL_DEPLOY_PASSWORD")
}
}
}
Expand Down

0 comments on commit 707cb2a

Please sign in to comment.