From 86652e6f2fd211dfe6c472c05a272d787e71003f Mon Sep 17 00:00:00 2001 From: schlaus Date: Thu, 5 Feb 2026 18:54:29 +0000 Subject: [PATCH] Add Gitea Actions workflow for CI/CD --- .gitea/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/deploy.yml 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