diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..df2e7fa5 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.gitignore b/.gitignore index e9e90b23..694f1381 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ node_modules .DS_Store .turbo dist -coverage \ No newline at end of file +coverage +_PipelineMapping/ \ No newline at end of file