commit 979fbef117ef673b9912fbef9a58318038397074 parent 469186b2a7e29004c6bce132d4107ce9a19c0b5e Author: Chris <chris@echoz.io> Date: Wed, 6 Sep 2023 19:32:56 +0200 ci: use rsync Diffstat:
| M | .github/workflows/deploy.yaml | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml @@ -15,5 +15,7 @@ jobs: - uses: jakejarvis/hugo-build-action@v0.105.0 - shell: bash run: | - sudo apt-get update && sudo apt-get install -y lftp - lftp -u "${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }}" "${{ secrets.FTP_HOST }}" -e "mirror -ceRX '.*' ./public '${{ secrets.FTP_PATH }}'; quit" + id_rsa=$(mktemp) + chmod 600 $id_rsa + echo "${{ secrets.SSH_KEY }}" > $id_rsa + rsync --delete -vre "ssh -i $id_rsa" ./public/ "${{ secrets.SSH_TARGET }}"