From 99520f3177cdfce463a033d00a59e59af723738d Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Mon, 5 Aug 2024 21:44:15 +0200 Subject: [PATCH] Finalize workflow - fixes #16 Signed-off-by: Nick Slowinski --- .forgejo/workflows/build-deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build-deploy.yaml b/.forgejo/workflows/build-deploy.yaml index 7f5e0a2..c06df97 100644 --- a/.forgejo/workflows/build-deploy.yaml +++ b/.forgejo/workflows/build-deploy.yaml @@ -30,12 +30,12 @@ jobs: env: SSH_KEY: ${{ secrets.WEB_SSH_KEY }} - - name: Test SCP + - name: Copy build to web server run: scp -r -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key build $WEB_SSH_USER@be.nick-slowinski.de:/var/www/nick-slowinski.de/www-tmp env: WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }} - - name: Test overwriting - run: ssh -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key $WEB_SSH_USER@be.nick-slowinski.de "rm -Rf /var/www/nick-slowinski.de/www-1 && mv /var/www/nick-slowinski.de/www-tmp /var/www/nick-slowinski.de/www-1" + - name: Overwriting files + run: ssh -o "IdentitiesOnly=yes" -i ~/.ssh/actions.key $WEB_SSH_USER@be.nick-slowinski.de "rm -Rf /var/www/nick-slowinski.de/www && mv /var/www/nick-slowinski.de/www-tmp /var/www/nick-slowinski.de/www" env: WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }} \ No newline at end of file