From a58a0a3fb2ea381f35b86a679c226bc84b398769 Mon Sep 17 00:00:00 2001
From: Pascal Syma
Date: Mon, 24 Aug 2026 22:45:34 +0200
Subject: [PATCH] Add CD
---
.gitea/workflows/deploy.yml | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 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..161d4dc
--- /dev/null
+++ b/.gitea/workflows/deploy.yml
@@ -0,0 +1,42 @@
+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
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Setup Node
+ uses: actions/setup-node@v3.7.0
+ with:
+ node-version: '13'
+ package-manager-cache: false
+ - run: npm install --include=dev
+ - name: Build project
+ run: npm run build
+ - 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: '/pascal.syma.dev/MI2Mario/'