From 48300f1d8e08e9483478532e4629e0319d1eb218 Mon Sep 17 00:00:00 2001 From: Johnnybegood90 Date: Mon, 9 Mar 2026 18:00:26 +0100 Subject: [PATCH] Add automatic deployment --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 427e78a..33c017a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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