From 8abab0f1dcab3a89e0fe020c5db5bc6b33435943 Mon Sep 17 00:00:00 2001 From: Soeren Wegener Date: Sun, 10 Nov 2024 21:52:47 +0100 Subject: [PATCH] create known_hosts file --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 07abbf5..3fa2715 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file