Files
BrewJournal/.gitea/workflows/deploy.yml
Aditya Gupta e808aa8a37
All checks were successful
Deploy Brew Application / deploy (push) Successful in 11s
fix: getGitVersion incorrectly stating dirty builds in production
2026-06-06 18:06:50 +05:30

33 lines
641 B
YAML

name: Deploy Brew Application
on:
push:
branches:
- master
jobs:
deploy:
runs-on: production
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Frontend
env:
CI: "true"
run: |
npm install
rm -rf dist/
npm run build
- name: Deploy Frontend Files
run: |
rm -rf /var/www/brew/dist/
cp -r dist/ /var/www/brew/
- name: Restart Backend with PM2
run: |
cd server
npm install
pm2 restart brew-backend || pm2 start index.js --name "brew-backend"