From 48954f43814cc4242415a9d158d5b92cae4d4016 Mon Sep 17 00:00:00 2001 From: Biagio Tozzi Date: Sat, 13 Jul 2024 13:42:21 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c87800..c3c1a7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,19 +58,12 @@ jobs: - name: Import GPG key run: | - cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import - gpg --list-secret-keys --keyid-format LONG + cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import env: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - - - name: Setup GPG config - run: echo "use-agent\npinentry-mode loopback" >> $HOME/.gnupg/gpg.conf - name: Publish to Maven Central run: ./gradlew -Psigning.gnupg.passphrase=${{ secrets.GPG_SIGNING_PASSWORD }} -Psigning.gnupg.keyName=${{ secrets.GPG_SIGNING_KEY_ID }} publish closeAndReleaseStagingRepositories env: SONATYPE_USER: ${{ secrets.SONATYPE_USER }} SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }} - GPG_SIGNING_KEY_ID: ${{ secrets.GPG_SIGNING_KEY_ID }} - GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} - GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}