Skip to content

Commit

Permalink
feat(visualizator-be): Add auto deploy for Visualizator backend
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 committed Jul 7, 2024
1 parent dcd6445 commit 7f9eb3f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit 7f9eb3f

Please sign in to comment.