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