Skip to content

Commit 2b2b0cf

Browse files
📝 更新GitHub工作流,修正SSH主机密钥的环境变量
- 将SSH主机密钥的环境变量从`${{ secrets.IP }}`更改为`${{ secrets.IPv4 }}`,确保正确使用IPv4地址进行安全连接。 - 保持rsync文件同步到服务器的步骤不变,确保部署流程的稳定性。
1 parent 1aed103 commit 2b2b0cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/updata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
- name: Add SSH host key
2626
run: |
2727
mkdir -p ~/.ssh
28-
ssh-keyscan -H ${{ secrets.IP }} >> ~/.ssh/known_hosts
28+
ssh-keyscan -H ${{ secrets.IPv4 }} >> ~/.ssh/known_hosts
2929
- name: Rsync files to server
3030
run: rsync -avz --delete ./build/ ${{ secrets.IP }}

0 commit comments

Comments
 (0)