desperately trying to understand that annoying lobby bug #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Prod | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: CI | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Deploy to server | |
env: | |
SSHPASS: ${{ secrets.SSH_PASSWORD }} | |
run: | | |
sshpass -e ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << EOF | |
cd /home/vgmq/vgmq-api | |
git pull origin master | |
npm ci | |
npm run build | |
npm run typeorm migration:run | |
npm run stop:prod | |
npm run start:prod | |
EOF |