Add automatic deployment

This commit is contained in:
Johnnybegood90
2026-03-09 18:00:26 +01:00
parent 1ee6fc9c0e
commit 48300f1d8e
+5 -2
View File
@@ -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