From d0ceb814b13c39d548bfba1e4ba0e0d7edfed303 Mon Sep 17 00:00:00 2001 From: Soeren Wegener Date: Sun, 10 Nov 2024 21:54:04 +0100 Subject: [PATCH] create ssh dir --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3fa2715..a96ee89 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,6 +45,7 @@ jobs: - name: Upload files via SFTP run: | # avoid "host key verification failed" error by adding the host to known_hosts + mkdir -p ~/.ssh 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