Skip to content

Commit 8ca6fb8

Browse files
authored
[开发] release修改
[开发] release修改
2 parents e6a76cc + 3e6c6fe commit 8ca6fb8

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/PushSDK.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,12 @@ jobs:
5151
OSSRH_TOKEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
5252
OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
5353

54-
- name: Import GPG key
55-
uses: crazy-max/ghaction-import-gpg@v6
56-
with:
57-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
58-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
59-
trust_level: 5
60-
61-
- name: Show Java and Maven versions
54+
- name: Configure GPG Key
6255
run: |
63-
java -version
64-
mvn -v
56+
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
57+
gpg-connect-agent reloadagent /bye
58+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
59+
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --always-trust --yes --passphrase-fd 0 --pinentry-mode loopback -s -o /dev/null
6560
6661
- name: Deploy to Central Portal
6762
run: |

0 commit comments

Comments
 (0)