From 088327cf798a40024cb9a8b02c5507da48e4246d Mon Sep 17 00:00:00 2001 From: stefankoppier Date: Sun, 22 Sep 2024 09:38:06 +0200 Subject: [PATCH] Try add add signing to release workflow --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1786f31f..1b5f6143 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,11 +24,20 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + - name: Install GPG + run: | + cat <(echo -e "${{ secrets.MAVEN_CENTRAL_GPG_SECRET_KEY }}") | gpg --batch --import + gpg --list-secret-keys --keyid-format LONG + - name: Staging run: ./gradlew publish - name: Publish to Maven Central - run: ./gradlew jreleaserFullRelease -Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} -Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }} + run: | + ./gradlew jreleaserFullRelease \ + -Dsigning.passphrase=${{ MAVEN_CENTRAL_GPG_SECRET_PASSWORD }} \ + -Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} \ + -Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}