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 }}