Deploy Visualizator Backend #28
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 Visualizator Backend | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "apps/visualizator-be/**" | |
# Enables manual trigger of the workflow | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: /${{ vars.USER }}/xcm-tools | |
steps: | |
- run: git pull | |
- run: pnpm install | |
- run: pnpm build | |
- name: Restart PM2 process | |
run: pm2 restart visualizator-be | |
env: | |
PM2_HOME: /${{ vars.USER }}/.pm2 |