Skip to content

Commit 71fca9a

Browse files
authored
Update client-deploy-app.yml
1 parent 0ecd4bb commit 71fca9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/client-deploy-app.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
uses: webfactory/ssh-agent@v0.5.3
2121
with:
2222
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
23+
- name: Add SSH key to known_hosts
24+
run: |
25+
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
26+
chmod 644 ~/.ssh/known_hosts
2327
- name: Transfer app directory to the server
2428
run: |
2529
scp -r app root@223.130.130.221:/var/www/html/

0 commit comments

Comments
 (0)