Skip to content

Commit

Permalink
build: add the server key to the known_hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-rdo committed Aug 14, 2024
1 parent 463179c commit dede468
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add server to known_hosts
run: |
ssh-keyscan -H $DEPLOY_SERVER >> ~/.ssh/known_hosts
- name: Deploy to Server
env:
DEPLOY_SERVER: ${{ secrets.DEPLOY_SERVER }}
Expand Down

0 comments on commit dede468

Please sign in to comment.