diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab0f89da1..260794322 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,13 +25,14 @@ jobs: # Due to some limitations of https://github.com/node-gradle/gradle-node-plugin. node-version: '16' # Disable CC due to https://github.com/gradle/gradle/issues/22779 - # gitPublishPush doesn't work due to credentials issue. - - run: ./gradlew publish publishPlugins --no-configuration-cache + - run: ./gradlew release --no-configuration-cache env: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }} + # We must declare repository_owner as the user, workaround for https://github.com/ajoberstar/gradle-git-publish/issues/109. + GRGIT_USER: ${{ github.repository_owner }} # https://ajoberstar.org/grgit/main/grgit-authentication.html#_environment_variables - GRGIT_USER: ${{ secrets.GITHUB_TOKEN }} + GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}