From acf22372d3d5bb0ed1f24408fc912a855020162d Mon Sep 17 00:00:00 2001 From: amnix Date: Tue, 1 Oct 2024 16:24:59 +0900 Subject: [PATCH] Export gpg key --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8989d95..7396e05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,6 +38,8 @@ jobs: with: gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} passphrase: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + - name: Export GPG key to secring + run: gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -51,7 +53,7 @@ jobs: --no-configuration-cache --no-daemon -Psigning.password='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}' - -Psigning.secretKeyRingFile=/home/runner/.gnupg/secring.gpg + -Psigning.secretKeyRingFile=~/.gnupg/secring.gpg -Psigning.keyId='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}' -PmavenCentralUsername='${{secrets.OSSRH_USERNAME}}' -PmavenCentralPassword='${{secrets.OSSRH_PASSWORD}}'