From c1f82b896fc0796244544bad07e1f5494ff035fd Mon Sep 17 00:00:00 2001 From: informaticker Date: Sun, 3 Nov 2024 23:30:50 +0100 Subject: [PATCH] fix actions AGAIN --- .gitea/workflows/deploy.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8726ae4..ccd9634 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -26,9 +26,8 @@ jobs: USER: ${{ secrets.USER }} run: | ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*' - scp -r \ - $(ls -A | grep -v '.git') \ - $USER@$HOST1:/var/www/elia.network/html/ + scp -r . $USER@$HOST1:/var/www/elia.network/html/ + ssh $USER@$HOST1 'rm -r /var/www/elia.network/html/.git*' - name: Reload Nginx env: HOST1: ${{ secrets.HOST1 }}