Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyx0412 committed Oct 24, 2024
1 parent 95fb28f commit 3e9a982
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 15 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: wget https://github.com/NuclearPowered/Reactor/releases/download/2.2.0/Reactor.dll -P ./Release/BepInEx/plugins

- name: Build
run: dotnet build TheOtherRoles/TheOtherRoles.csproj --configuration Beta --output ./Release/BepInEx/plugins
run: dotnet build TheOtherRoles/TheOtherRoles.csproj --configuration Release --output ./Release/BepInEx/plugins

- name: Cleanup
run: |
Expand All @@ -68,3 +68,38 @@ jobs:
with:
name: TheOtherUs
path: ./Release/

release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: TheOtherUs
- name: Compress subdirectories
run: |
ls -R
zip -q -r TheOtherUs.zip *
mv ./BepInEx/plugins/TheOtherUs.dll ./
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Clone Changes Log
run: |
wget https://raw.githubusercontent.com/mxyx-club/TheOtherUs-Edited/v${{ env.VERSION }}/CHANGELOG.md -O CHANGELOG.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "TheOtherUs-Edited v${{ env.VERSION }}"
body_path: CHANGELOG.md
files: |
TheOtherUs.dll
./TheOtherUs.zip
draft: true
prerelease: false
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v1.0.8.7更新日志:

* 修复部分情况下刺客无法连赌的问题
* 修复大神官使用技能后,赌怪可以猜测在天平之外的玩家
* 修复会议中死亡的大神官仍然可以使用技能
* 修复女巫击杀余波时没有正常产生效果
* 修复部分中立职业击杀部分带盾玩家没有正常重置击杀冷却
* 还有其他一些小优化
38 changes: 24 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

| 游戏版本 | 模组版本 | 发布日期 | 链接 |
| ------------------- | -------- | --------- | ------------------------------------------------------------ |
| 2024.3.5 ~ 2024.6.4 | v1.0.8.6 | 2024.10.18 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.8.6/TheOtherUs.zip) |
| 2024.8.13 ~ 2024.10.29 | v2.0.0.0 | 即将推出 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.8.7/TheOtherUs.zip) |
| 2024.3.5 ~ 2024.6.4 | v1.0.8.7 | 2024.10.24 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.8.7/TheOtherUs.zip) |
| 2024.3.5 ~ 2024.6.4 | v1.0.8.6 | 2024.10.18 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.8.6/TheOtherUs.zip) |
| 2024.3.5 ~ 2024.6.4 | v1.0.7.7 | 2024.9.16 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.7.7/TheOtherUs.zip) |
| 2024.3.5 ~ 2024.6.4 | v1.0.7.6 | 2024.9.14 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.7.6/TheOtherUs.zip) |
| 2024.3.5 ~ 2024.6.4 | v1.0.7.2 | 2024.9.6 | [下载](https://github.com/mxyx-club/TheOtherUs-Edited/releases/download/v1.0.7.2/TheOtherUs.zip) |
Expand All @@ -35,17 +37,29 @@

## 更新日志

## v1.0.8.7:

* 修复部分情况下刺客无法连赌的问题
* 修复大神官使用技能后,赌怪可以猜测在天平之外的玩家
* 修复会议中死亡的大神官仍然可以使用技能
* 修复女巫击杀余波时没有正常产生效果
* 修复部分中立职业击杀部分带盾玩家没有正常重置击杀冷却
* 还有其他一些小优化

## v1.0.8.6:

* 重新添加自动更新
* 更新BepinEx依赖至be.697
* 新增船员职业:大神官
* 添加对本地帽子的支持(请在模组设置中查看)
* 修复色盲文本会被强制显示、变色龙在部分情况不会隐藏色盲文字的问题
* 优化随机出生
* 修复邪恶的设陷师击杀cd
* 可以使用F11键位控制游戏分辨率大小
* 添加 "最小/最大 独立阵营杀手数" 调整选项,如果这两项都是随机,则使用原先的概率分配。
* 重新添加自动更新
* 更新BepinEx依赖至be.697
* 新增船员职业:大神官
* 添加对本地帽子的支持(请在模组设置中查看)
* 修复色盲文本会被强制显示、变色龙在部分情况不会隐藏色盲文字的问题
* 优化随机出生
* 修复邪恶的设陷师击杀cd
* 可以使用F11键位控制游戏分辨率大小
* 添加 "最小/最大 独立阵营杀手数" 调整选项,如果这两项都是随机,则使用原先的概率分配。

<details>
<summary>点我查看更多更新日志</summary>

### v1.0.7.7:

Expand Down Expand Up @@ -78,10 +92,6 @@
- 追踪者:玩家箭头将以该玩家的颜色显示
- 巴甫洛夫:删除选项 “会议后重置自杀时限” ,默认开启

<details>
<summary>点我查看更多更新日志</summary>


### v1.0.7.2:

- #### 新增内容:
Expand Down
1 change: 1 addition & 0 deletions TheOtherRoles.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Other Files", "Other Files"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.github\workflows\build.yml = .github\workflows\build.yml
CHANGELOG.md = CHANGELOG.md
README.md = README.md
README_EN.md = README_EN.md
EndProjectSection
Expand Down

0 comments on commit 3e9a982

Please sign in to comment.