From 5c537ab8d9cc0b49bbb689bc220ba2dbdf444739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Wed, 15 Oct 2025 22:40:20 +0900 Subject: [PATCH] ci: simplify release --- .gitea/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 807491b..d48aefb 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,6 +26,35 @@ jobs: with: name: site path: dist/ + - name: Create Release Package + if: startsWith(github.ref, 'refs/tags/') + run: | + VERSION=${GITHUB_REF#refs/tags/v} + mkdir release/ + python3 -m zipfile -c "release/um-react-${VERSION}.zip" dist/. + cp win64/dist/*.zip "release/um-react-win64-${VERSION}.zip" + - name: Create Draft Release + if: startsWith(github.ref, 'refs/tags/') + uses: akkuman/gitea-release-action@v1 + with: + draft: true + files: | + release/um-react-*.zip + release/um-react-win64-*.zip + body: | + 上个版本:[v0.0.0](https://git.um-react.app/um/um-react/releases/tag/v0.0.0) + + ## 🐛 修正 + + - 修正内容 + + ## ✨ 新增 + + - 新增内容 + + ## 🔧 维护 + + - 维护内容 - name: Prepare for deployment run: | cp um-react.zip dist/"release-${GITHUB_SHA}.zip"