Skip to content

Commit

Permalink
create known_hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Nov 10, 2024
1 parent 239b867 commit 8abab0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
- name: Upload files via SFTP
run: |
# avoid "host key verification failed" error by adding the host to known_hosts
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
echo "${{ secrets.SSH_PRIVATE_KEY }}" > sftp_private_key.pem
sftp -i sftp_private_key.pem -P ${{ secrets.SFTP_PORT }} -r ${{ secrets.SFTP_USERNAME }}@${{ secrets.SFTP_SERVER }}:/apps.flipdot.org/ ./dist

0 comments on commit 8abab0f

Please sign in to comment.