mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 01:57:58 +00:00
37ee9ffd9f
dist/ is gitignored so VPS needs to build TypeScript handlers locally after git pull.
22 lines
562 B
YAML
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
|