diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 0ab7229..01f5939 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -18,5 +18,5 @@ jobs: shell: sh - name: Deploy - run: ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no hadeed@hadeedahmad.xyz 'cd nginx/www; git pull' + run: ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no hadeed@hadeedahmad.xyz 'cd nginx/www; git fetch; git reset --hard origin/main' shell: sh