Some checks failed
Build and Deploy to Production / build-and-deploy (push) Has been cancelled
27 lines
604 B
YAML
27 lines
604 B
YAML
name: Build and Deploy to Production
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build project
|
|
run: bun run build
|
|
|
|
- name: Deploy
|
|
run: |
|
|
echo "🚀 Deploying to production..."
|
|
# Restart the Bun server to pick up new build
|
|
systemctl restart bun-react || true
|
|
echo "✅ Deployment complete!"
|
|
echo "Site is live at: https://schlaustronics.com" |