diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a8ce1ff..10709bd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,6 +20,8 @@ jobs: SECRET_SERVER: ${{ secrets.SECRET_SERVER }} run: | echo "${{ secrets.SECRET_PRIVATE_SSH }}" > p.key + mkdir -p ~/.ssh + touch ~/.ssh/known_hosts echo "${{ secrets.SECRET_PUB }}" > ~/.ssh/known_hosts ssh -i ./p.key -p ${{ secrets.SECRET_PORT }} ${{ secrets.SECRET_SERVER }} "cd /project/Swissdle && git pull origin main