Add automatic deployment
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
name: Deploy to server
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -15,5 +17,6 @@ jobs:
|
||||
username: ${{ secrets.SERVER_USER }}
|
||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||
script: |
|
||||
cd /var/www/guide.tv.plex.johnnybegood.fr
|
||||
git pull
|
||||
cd ${{ secrets.DEPLOY_PATH }}
|
||||
git fetch origin
|
||||
git reset --hard origin/main
|
||||
|
||||
Reference in New Issue
Block a user