Files
pezkuwi-subquery/.github/workflows/deploy-vps.yml
T
pezkuwichain 37ee9ffd9f fix: add yarn build to deploy workflow
dist/ is gitignored so VPS needs to build TypeScript
handlers locally after git pull.
2026-02-19 04:34:16 +03:00

22 lines
562 B
YAML

name: Deploy to VPS
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.VPS_HOST }}
username: root
key: ${{ secrets.VPS_SSH_KEY }}
script: |
cd /opt/subquery
git pull origin main
yarn install --frozen-lockfile
yarn build
docker compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml up -d