From aea3509f771a06a5d4c2805ae42d7451dfb9ec4b Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 3 Jul 2023 14:30:57 +0000 Subject: [PATCH] Actualiser .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 31ff3c5..8961097 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -33,16 +33,16 @@ jobs: ls -al public/ - name: Copy (scp) staging build to blog server - uses: https://github.com/nicklasfrahm/scp-action@main + uses: https://github.com/appleboy/scp-action@v0.1.4 with: host: ${{ secrets.SSH_HOSTNAME }} username: root port: 22 - direction: upload key: ${{ secrets.SSH_KEY }} - insecure_ignore_fingerprint: true source: 'public/*' target: '/var/www/html/staging' + rm: true + strip_components: 1 - name: Build production run: hugo --gc --minify -b https://blog.broillet.ch/ @@ -52,7 +52,7 @@ jobs: ls -al . ls -al public/ - - name: Copy (scp) staging build to blog server + - name: Copy (scp) prod build to blog server uses: https://github.com/appleboy/scp-action@v0.1.4 with: host: ${{ secrets.SSH_HOSTNAME }}