Finalize workflow - fixes #16

Signed-off-by: Nick Slowinski <nick@nick-slowinski.de>
Dieser Commit ist enthalten in:
Nick Slowinski 2024-08-05 21:44:15 +02:00
Ursprung 1befbbce53
Commit 99520f3177
Signiert von: nickslowinski
GPG-Schlüssel-ID: A28671573AA347CC

Datei anzeigen

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