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 6f5c009
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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
steps:
- run: git pull
- run: pnpm install
- run: pnpm --filter visualizator-be build
- name: Restart PM2 process
run: pm2 restart visualizator-be
env:
PM2_HOME: /${{ secrets.USER }}/.pm2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
.DS_Store
.turbo
dist
coverage
coverage
_PipelineMapping/

0 comments on commit 6f5c009

Please sign in to comment.