From 43032f26bcfeb4c48f6b7f9485987727635552d0 Mon Sep 17 00:00:00 2001
From: Pascal Syma
Date: Sun, 23 Aug 2026 02:21:03 +0200
Subject: [PATCH] Add gitea pages
---
.gitea/workflows/deploy.yml | 46 +++++++++++++++++++++++++++++++++++++
1 file changed, 46 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..618e649
--- /dev/null
+++ b/.gitea/workflows/deploy.yml
@@ -0,0 +1,46 @@
+name: Deploy static content to S3
+
+on:
+ push:
+ branches: ['main', 'master']
+
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: 'pages'
+ cancel-in-progress: false
+
+jobs:
+ deploy:
+ environment:
+ name: github-pages
+ runs-on: ubuntu-latest
+ env:
+ BASE: /tramtrack/
+ VITE_ROUTER: hash
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v2
+ - run: bun install --include=dev
+ - name: Check project
+ run: bun run check:all
+ - name: Build project
+ run: bun run build-only
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+ - name: Minio Deploy
+ uses: passidel/minio-deploy-action@v1
+ with:
+ endpoint: ${{ secrets.MINIO_ENDPOINT }}
+ access_key: ${{ secrets.MINIO_ACCESS_KEY }}
+ secret_key: ${{ secrets.MINIO_SECRET_KEY }}
+ bucket: 'swarm-static-websites'
+ source_dir: './dist'
+ target_dir: '/swarm.syma.dev/tramtrack/'