From 9f4331c69af60f72dd2af2683a9242c0676f1537 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 9 Feb 2024 18:28:54 +0100 Subject: [PATCH] ci: fix rsync deployment --- .forgejo/workflows/hugo.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/hugo.yaml b/.forgejo/workflows/hugo.yaml index f351a12..35e6f19 100644 --- a/.forgejo/workflows/hugo.yaml +++ b/.forgejo/workflows/hugo.yaml @@ -23,9 +23,12 @@ jobs: mv hugo /usr/local/bin - name: Build run: hugo --minify - - name: Create Key File - run: install -m 600 -D /dev/null ~/.ssh/id_edsa + - name: Create key file + run: install -m 600 -D /dev/null ~/.ssh/id - name: Populate Key - run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa + run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id - name: Upload - run: rsync --archive --stats -e 'ssh -i ~/.ssh/id_edsa -o StrictHostKeyChecking=no' public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox-02/public + run: | + rsync --archive --progress \ + --rsh='ssh -i ~/.ssh/id -o StrictHostKeyChecking=no' \ + public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox-02/public