fix: deploy workflow stash local changes before git pull

git pull was silently failing when VPS had local modifications,
causing deploys to not actually update the code.
This commit is contained in:
2026-03-10 00:53:05 +03:00
parent 6b188858db
commit 7dac1598dc
+3
View File
@@ -13,10 +13,13 @@ jobs:
username: root
key: ${{ secrets.VPS_SSH_KEY }}
script: |
set -e
cd /opt/subquery
git stash --include-untracked || true
git pull origin main
yarn install --frozen-lockfile
./node_modules/.bin/subql codegen pezkuwi-governance.yaml
./node_modules/.bin/subql build pezkuwi.yaml
docker compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml up -d
git stash pop || true