Finalize workflow - fixes #16
Signed-off-by: Nick Slowinski <nick@nick-slowinski.de>
Dieser Commit ist enthalten in:
Ursprung
1befbbce53
Commit
99520f3177
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -30,12 +30,12 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.WEB_SSH_KEY }}
|
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
|
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:
|
env:
|
||||||
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
|
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
|
||||||
|
|
||||||
- name: Test overwriting
|
- 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-1 && mv /var/www/nick-slowinski.de/www-tmp /var/www/nick-slowinski.de/www-1"
|
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:
|
env:
|
||||||
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
|
WEB_SSH_USER: ${{ secrets.WEB_SSH_USER }}
|
Laden …
In neuem Issue referenzieren