From 3c53361064052a3174cf8090c464cb6de60aafd5 Mon Sep 17 00:00:00 2001 From: Eric Vantillard Date: Wed, 8 Mar 2023 22:40:21 +0100 Subject: [PATCH] fix: missing signature in OSSRH publication (#1313) Adding `signingKey` and `signingPassword`properties when calling gradle publication tasks from the CI workflow fix the bug. Fixes: #1313 --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index decb2c7fa..16e5de4bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,6 +155,9 @@ jobs: GITHUB_TOKEN: ${{ github.token }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + #do not remove signing key and password or signatures will not be published + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ARTIFACT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }} run: | .github/scripts/release-snapshot.sh gradle publish @@ -166,6 +169,9 @@ jobs: TAG: ${{ github.event.ref }} OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + #do not remove signing key and password or signatures will not be published + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ARTIFACT_SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }} run: | .github/scripts/release.sh gradle publish