Files
schlaustronics-website/.gitea/workflows/deploy.yml
schlaus 86652e6f2f
Some checks failed
Build and Deploy to Production / build-and-deploy (push) Has been cancelled
Add Gitea Actions workflow for CI/CD
2026-02-05 18:54:29 +00:00

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"