From fdeab1c298e05a9ff3eadfad28de5f54945e678c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 28 Sep 2022 01:16:05 +0200 Subject: [PATCH] Fix deploy --- .github/workflows/publish.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d92ed49..1d3c197 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,10 +30,7 @@ jobs: needs: [push_to_registry] steps: - name: Deploy - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.DEPLOY_HOST }} - username: ${{ secrets.DEPLOY_USERNAME }} - key: ${{ secrets.DEPLOY_KEY }} - port: ${{ secrets.DEPLOY_PORT }} - script: /mnt/data/blog/update + run: | + TEMP=$(mktemp) + echo "${{ secrets.DEPLOY_KEY }}" > $TEMP + ssh -o StrictHostKeyChecking=no -i $TEMP ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update