Skip to content

Commit 8c9d552

Browse files
committed
Try fix
1 parent a7b20c3 commit 8c9d552

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release_to_maven.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: Import GPG key
1515
run: |
16-
echo "$GPG_SIGNING_KEY_PW" | gpg --batch --import --yes --passphrase-fd 0 <(echo -n "$GPG_SIGNING_KEY" | base64 --decode)
16+
echo "$GPG_SIGNING_KEY_PW" | gpg --batch --import --yes --passphrase-fd 0 <(echo -n "$GPG_SIGNING_KEY")
1717
mkdir -p ~/.gradle
1818
echo -n "signing.keyId=ABC48776" >> ~/.gradle/gradle.properties
1919
echo -n "signing.password=${GPG_SIGNING_KEY_PW}" >> ~/.gradle/gradle.properties
20-
echo -n "signing.secretKeyRingFile=${{ github.workspace }}/.gnupg/secring.gpg" >> ~/.gradle/gradle.properties
21-
gpg --keyring secring.gpg --export-secret-keys --armor ABC48776 > ~/.gnupg/secring.gpg
22-
cat ${{ github.workspace }}/.gnupg/secring.gpg
20+
echo -n "signing.secretKeyRingFile=${{ secrets.GPG_PRIVATE_KEY }}" >> ~/.gradle/gradle.properties
2321
env:
2422
GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
2523
GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)