diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db8900c..2711e69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,13 +48,20 @@ jobs: shell: pwsh # 配置【编译后的文件地址】 run: Compress-Archive -Path ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\* -DestinationPath ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\JiuLing.AutoUpgrade.Shell_${{ steps.tagName.outputs.tag }}.zip + # 截取最新日志 + - name: Extract latest release notes + shell: pwsh + run: | + $changelog = Get-Content -Path "${{github.workspace}}\CHANGELOG.md" + $latestLog = $changelog -join "`n" -replace "(?s).*?(## \d+\.\d+\.\d+)",'$1' -replace "(?s)(## \d+\.\d+\.\d+).*",'$1' + Set-Content -Path "${{github.workspace}}\LATEST_CHANGELOG.md" -Value $latestLog - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: # 配置【README地址】 - body_path: ${{github.workspace}}\CHANGELOG.md + body_path: ${{github.workspace}}\LATEST_CHANGELOG.md # 配置【zip文件地址】 files: ${{github.workspace}}\src\JiuLing.AutoUpgrade.Shell\bin\Release\JiuLing.AutoUpgrade.Shell_${{ steps.tagName.outputs.tag }}.zip diff --git a/CHANGELOG.md b/CHANGELOG.md index f18b430..475aa85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ +## 2.2.2 + +### 🔥 更新说明 [English Version](./CHANGELOG_en.md) +* 🌀 测试自动构建是否可用 + ## 2.2.1 ### 🔥 更新说明 [English Version](./CHANGELOG_en.md) +* 🌈 删除不再使用的代码 * 🌀 测试自动构建是否可用 ## 2.2.0 diff --git a/CHANGELOG_en.md b/CHANGELOG_en.md index 280619e..27ff587 100644 --- a/CHANGELOG_en.md +++ b/CHANGELOG_en.md @@ -1,6 +1,12 @@ +## 2.2.2 + +### 🔥 Changelog [中文版本](./CHANGELOG.md) +* 🌀 Tested if auto-build is functional + ## 2.2.1 ### 🔥 Changelog [中文版本](./CHANGELOG.md) +* 🌈 Removed unused code * 🌀 Tested if auto-build is functional ## 2.2.0 diff --git a/src/JiuLing.AutoUpgrade.Shell/JiuLing.AutoUpgrade.Shell.csproj b/src/JiuLing.AutoUpgrade.Shell/JiuLing.AutoUpgrade.Shell.csproj index bf300e6..163dc93 100644 --- a/src/JiuLing.AutoUpgrade.Shell/JiuLing.AutoUpgrade.Shell.csproj +++ b/src/JiuLing.AutoUpgrade.Shell/JiuLing.AutoUpgrade.Shell.csproj @@ -3,7 +3,7 @@ netstandard2.0;net5.0;net6.0;net7.0;net8.0 JiuLing.AutoUpgrade - 2.2.1 + 2.2.2 九零 JiuLing.AutoUpgrade 一个简单的.Net下的自动更新组件。 diff --git a/src/JiuLing.AutoUpgrade/Properties/AssemblyInfo.cs b/src/JiuLing.AutoUpgrade/Properties/AssemblyInfo.cs index fe22700..1f2971d 100644 --- a/src/JiuLing.AutoUpgrade/Properties/AssemblyInfo.cs +++ b/src/JiuLing.AutoUpgrade/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2.1.0")] -[assembly: AssemblyFileVersion("2.2.1.0")] +[assembly: AssemblyVersion("2.2.2.0")] +[assembly: AssemblyFileVersion("2.2.2.0")]