This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Merge pull request #284 from X2bee/main #140
This file contains hidden or 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
| 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." |