diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..85b301a --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,27 @@ +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" \ No newline at end of file