We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ca6fb8 + 2a453a3 commit f7257a1Copy full SHA for f7257a1
.github/workflows/PushSDK.yml
@@ -53,13 +53,25 @@ jobs:
53
54
- name: Configure GPG Key
55
run: |
56
+ # 确保目录存在
57
+ mkdir -p ~/.gnupg
58
+ chmod 700 ~/.gnupg
59
+
60
+ # 写入配置
61
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
62
63
+ # 重载 Agent
64
gpg-connect-agent reloadagent /bye
65
66
+ # 导入私钥
67
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
68
69
+ # 验证并预热(非必须,但可以提前暴露问题)
70
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --always-trust --yes --passphrase-fd 0 --pinentry-mode loopback -s -o /dev/null
71
72
- name: Deploy to Central Portal
73
74
+ # 强制设置 GPG 终端环境
75
export GPG_TTY=$(tty)
76
mvn -X -B -U \
77
-DskipTests=true \
0 commit comments