chore: add hard reset to deployment workflow
All checks were successful
CI / update (push) Successful in 1m9s
All checks were successful
CI / update (push) Successful in 1m9s
Ensures deployment always matches remote state by performing a hard reset before building.
This commit is contained in:
@@ -29,5 +29,6 @@ jobs:
|
||||
script: |
|
||||
cd /usr/share/webapps/homepage
|
||||
git pull --force https://Alexander:${{ secrets.homepage_gitea_token }}@git.bocken.org/Alexander/homepage
|
||||
git reset --hard origin/master
|
||||
npm run build
|
||||
sudo systemctl restart homepage.service
|
||||
|
||||
Reference in New Issue
Block a user