From b096c39f68564028b07be94efeeb0979f465d968 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Thu, 3 Oct 2024 16:22:18 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bc23cb..207e391 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # CaiBotTModLoder适配插件 -不咋维护.jpg +## 使用注意事项: +永远只推荐使用最新版的CaiBot插件 +> [!NOTE] +> 如果你没看到绑定码,可以在控制台执行命令`/生成绑定码` +## 开发注意事项: +开发前需要在项目根目录下载`tModLoader`,并且文件夹名字就是`tModLoader`不能更改 +![image](https://github.com/user-attachments/assets/82cfdaae-83f4-491a-af2b-7e9516435ae9) 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 2/7] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=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 + From 13c5f3cc35fc6e419205efb1c922f58c718f7514 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Thu, 3 Oct 2024 16:37:00 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6aca5e7..240aa4f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -49,14 +49,14 @@ jobs: - 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') + git tag -f v$(date +'%Y.%m.%d') + git push -f origin v$(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') + tag: v$(date +'%Y.%m.%d') name: CaiBotMod v$(date +'%Y.%m.%d') body: | # CaiBotMod From abffc3240e387834d636dcde237cf548fce1f269 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Thu, 3 Oct 2024 16:42:28 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 240aa4f..ef9e1c9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -57,9 +57,9 @@ jobs: uses: ncipollo/release-action@v1 with: tag: v$(date +'%Y.%m.%d') - name: CaiBotMod v$(date +'%Y.%m.%d') + name: v$(date +'%Y.%m.%d') body: | - # CaiBotMod + # CaiBotMod Ciallo~(∠・ω< )⌒☆ ### 📅 只推荐使用最新版CaiBot扩展 ### 📖 MOD版本的CaiBot扩展功能有所缩减 ### 📦 Auto Build By Github Action From e07077715bea62774edb69a5de87529e0b80c9da Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Thu, 3 Oct 2024 16:54:59 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ef9e1c9..f65a1d1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,18 +46,22 @@ jobs: path: | ./artifacts/Mods/CaiBotMod.tmod + - name: Set Release Tag + id: set_tag + run: echo "::set-output name=tag::v$(date +'%Y.%m.%d')" + - name: Update Tag if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: | - git tag -f v$(date +'%Y.%m.%d') - git push -f origin v$(date +'%Y.%m.%d') + git tag -f ${{ steps.set_tag.outputs.tag }} + git push -f origin ${{ steps.set_tag.outputs.tag }} - name: Release Mod if: github.event_name == 'push' && github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 with: - tag: v$(date +'%Y.%m.%d') - name: v$(date +'%Y.%m.%d') + tag: ${{ steps.set_tag.outputs.tag }} + name: CaiBotMod ${{ steps.set_tag.outputs.tag }} body: | # CaiBotMod Ciallo~(∠・ω< )⌒☆ ### 📅 只推荐使用最新版CaiBot扩展 From 321effcb1b4dec7d4bdf021119be450f6e660a1b Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Fri, 4 Oct 2024 07:37:39 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f65a1d1..4866f43 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,6 +21,20 @@ jobs: with: dotnet-version: 8.0.x + - name: Update version in build.txt + run: | + $date = Get-Date -Format "yyyy.MM.dd" + (Get-Content CaiBotMod/build.txt) -replace 'version = \d+\.\d+\.\d+', "version = $date" | Set-Content CaiBotMod/build.txt + + - name: Commit changes + run: | + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + git add CaiBotMod/build.txt + git commit -m "自动更新版本号 v$date [skip ci]" + git push + continue-on-error: true + - name: Download TMODL run: | Invoke-WebRequest -Uri "https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip" -OutFile "tModLoader.zip" From 334f6ab9fbe35e29f6e277267c25626700720c98 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 3 Oct 2024 23:38:18 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=20v=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CaiBotMod/build.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CaiBotMod/build.txt b/CaiBotMod/build.txt index 0c49aef..1e124e0 100644 --- a/CaiBotMod/build.txt +++ b/CaiBotMod/build.txt @@ -1,5 +1,5 @@ displayName = CaiBot扩展插件 author = Cai -version = 2024.10.2 +version = 2024.10.03 dllReferences=SixLabors.ImageSharp,Newtonsoft.Json -buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, Old\* \ No newline at end of file +buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, Old\*