From bdcb1597d59efa1667efe6f2f88fde4747f863e8 Mon Sep 17 00:00:00 2001 From: Plenty Su Date: Thu, 14 Mar 2024 11:48:23 +0900 Subject: [PATCH] Store the keyring in the /tmp (#47) --- .github/workflows/maven-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 385695a..b0923d7 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -24,11 +24,11 @@ jobs: - name: Upload the package to Maven Central Repository run: | - echo "${{ secrets.SIGNING_SECRET_KEY_RING }}" | base64 -d > ~/.gradle/secring.gpg + echo "${{ secrets.SIGNING_SECRET_KEY_RING }}" | base64 -d > /tmp/secring.gpg ./gradlew publish \ -Pversion="${{ steps.version.outputs.version }}" \ -Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \ -Psigning.password="${{ secrets.SIGNING_PASSWORD }}" \ - -Psigning.secretKeyRingFile="$(echo ~/.gradle/secring.gpg)" \ + -Psigning.secretKeyRingFile="$(echo /tmp/secring.gpg)" \ -PossrhUsername="${{ secrets.OSSRH_USERNAMAE }}" \ -PossrhPassword="${{ secrets.OSSRH_PASSWORD }}"