-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(visualizator-be): Add auto deploy for Visualizator backend
- Loading branch information
1 parent
dcd6445
commit 7f9eb3f
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
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 |