Skip to content

Commit f7257a1

Browse files
authored
V1.0.0
V1.0.0
2 parents 8ca6fb8 + 2a453a3 commit f7257a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/PushSDK.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,25 @@ jobs:
5353

5454
- name: Configure GPG Key
5555
run: |
56+
# 确保目录存在
57+
mkdir -p ~/.gnupg
58+
chmod 700 ~/.gnupg
59+
60+
# 写入配置
5661
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
62+
63+
# 重载 Agent
5764
gpg-connect-agent reloadagent /bye
65+
66+
# 导入私钥
5867
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
68+
69+
# 验证并预热(非必须,但可以提前暴露问题)
5970
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --always-trust --yes --passphrase-fd 0 --pinentry-mode loopback -s -o /dev/null
6071
6172
- name: Deploy to Central Portal
6273
run: |
74+
# 强制设置 GPG 终端环境
6375
export GPG_TTY=$(tty)
6476
mvn -X -B -U \
6577
-DskipTests=true \

0 commit comments

Comments
 (0)