Skip to content

Commit

Permalink
chore: fix GH package publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshg committed May 14, 2024
1 parent ee2b189 commit 8af59e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ jobs:
env:
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_SECRET_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_SECRET_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_githubActor: ${{ github.repository_owner }}
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUB_TOKEN }}
# JOB_CONTEXT: ${{ toJSON(job) }}
# STEPS_CONTEXT: ${{ toJSON(steps) }}
# RUNNER_CONTEXT: ${{ toJSON(runner) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ publishing {
url = uri(Repo.githubPackage(libs.versions.dev.name.get(), rootProject.name))
credentials {
// findProperty("githubActor")
username = githubActor.getOrElse("")
password = githubToken.getOrElse("")
username = githubActor.orNull ?: System.getenv("GITHUB_ACTOR")
password = githubToken.orNull ?: System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down

0 comments on commit 8af59e9

Please sign in to comment.