diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23d1f75e724..cb0fab7bc4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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) }} diff --git a/gradle/build-logic/src/main/kotlin/plugins/publishing.gradle.kts b/gradle/build-logic/src/main/kotlin/plugins/publishing.gradle.kts index c533996c84e..a637169d6a9 100644 --- a/gradle/build-logic/src/main/kotlin/plugins/publishing.gradle.kts +++ b/gradle/build-logic/src/main/kotlin/plugins/publishing.gradle.kts @@ -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") } } }