Skip to content

Commit

Permalink
Add ssh key to known hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
smartclash committed Aug 19, 2024
1 parent 78bd6c4 commit 470d24a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_INSCROMPT_PRIVATE }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- name: Deploy to server
uses: appleboy/[email protected]
with:
Expand Down

0 comments on commit 470d24a

Please sign in to comment.