diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4ca86ac..5b63ef5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,7 +21,7 @@ jobs: run: | mkdir -p ~/.ssh touch ~/.ssh/known_hosts - ssh-keyscan [hostname] >> ~/.ssh/known_hosts + ssh-keyscan ${{secrets.SERVER_HOST}} >> ~/.ssh/known_hosts eval $(ssh-agent) ssh-add <<< "${{ secrets.SSH_PRIVATE_KEY }}"