From 286d022b72d8e84be6f6c27da8103002a61334b2 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Thu, 3 Oct 2024 16:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b78f534..6aca5e7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -45,4 +45,26 @@ jobs: name: CaiBotMod path: | ./artifacts/Mods/CaiBotMod.tmod - \ No newline at end of file + + - name: Update Tag + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: | + git tag -f $(date +'%Y.%m.%d') + git push -f origin $(date +'%Y.%m.%d') + + - name: Release Mod + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: ncipollo/release-action@v1 + with: + tag: $(date +'%Y.%m.%d') + name: CaiBotMod v$(date +'%Y.%m.%d') + body: | + # CaiBotMod + ### 📅 只推荐使用最新版CaiBot扩展 + ### 📖 MOD版本的CaiBot扩展功能有所缩减 + ### 📦 Auto Build By Github Action + artifacts: | + ./artifacts/Mods/CaiBotMod.tmod + allowUpdates: true + removeArtifacts: true +