mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-21 22:27:56 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user