Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Deploy Front

Deploy Front #144

Workflow file for this run

name: Deploy Front
on:
push:
branches: [ deploy ]
workflow_dispatch:
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Pull latest code
run: |
cd /home/plateerag
git pull origin deploy
echo "✅ Pulled latest source code."
- name: Create .env file
run: |
cd /home/plateerag
echo "NEXT_PUBLIC_BACKEND_HOST=${{ secrets.NEXT_PUBLIC_BACKEND_HOST }}" > .env
echo "NEXT_PUBLIC_METRICS_HOST=${{ secrets.NEXT_PUBLIC_METRICS_HOST }}" >> .env
- name: Install dependencies & Restart server
run: |
cd /home/plateerag
npm install
npm run build
npm run build:embed
pm2 reload frontend
echo "🚀 Frontend server restarted."