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