From 5110a564aa9eabf1000729ba442b83d2caec9948 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sat, 15 Mar 2025 18:09:35 -0400 Subject: [PATCH] Fixed scp command in deploy workflow --- .gitea/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 3585822..a20bb9c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -17,5 +17,7 @@ jobs: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 ssh-keyscan -H 192.168.1.113 > ~/.ssh/known_hosts - name: Copy built site to server - run: scp -sr public git@192.168.1.113:/var/www/soaos.dev + run: | + ssh git@192.168.1.113 "rm -rf /var/www/soaos.dev && mkdir /var/www/soaos.dev" + scp -sr public/ git@192.168.1.113:/var/www/soaos.dev