Skip to content

Commit 2255609

Browse files
authored
Update deploy_regru.yml
1 parent ee6f627 commit 2255609

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy_regru.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
- name: Install sshpass
2121
run: sudo apt-get update && sudo apt-get install -y sshpass
2222

23+
- name: Add server to known hosts
24+
run: |
25+
mkdir -p ~/.ssh
26+
ssh-keyscan -H ${{ env.SERVER_HOST }} >> ~/.ssh/known_hosts
27+
2328
- name: Copy files to server
2429
env:
2530
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD_REGRU }}

0 commit comments

Comments
 (0)