Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	CaiBotMod/build.txt
  • Loading branch information
ACaiCat committed Oct 4, 2024
2 parents e85e13f + 334f6ab commit 7c6a96f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
42 changes: 41 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -45,4 +59,30 @@ jobs:
name: CaiBotMod
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 ${{ 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: ${{ steps.set_tag.outputs.tag }}
name: CaiBotMod ${{ steps.set_tag.outputs.tag }}
body: |
# CaiBotMod Ciallo~(∠・ω< )⌒☆
### 📅 只推荐使用最新版CaiBot扩展
### 📖 MOD版本的CaiBot扩展功能有所缩减
### 📦 Auto Build By Github Action
artifacts: |
./artifacts/Mods/CaiBotMod.tmod
allowUpdates: true
removeArtifacts: true

5 changes: 2 additions & 3 deletions CaiBotMod/build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +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\*
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*, Old\*
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# CaiBotTModLoder适配插件

不咋维护.jpg
## 使用注意事项:
永远只推荐使用最新版的CaiBot插件
> [!NOTE]
> 如果你没看到绑定码,可以在控制台执行命令`/生成绑定码`
## 开发注意事项:
开发前需要在项目根目录下载`tModLoader`,并且文件夹名字就是`tModLoader`不能更改
![image](https://github.com/user-attachments/assets/82cfdaae-83f4-491a-af2b-7e9516435ae9)

0 comments on commit 7c6a96f

Please sign in to comment.