From 79084b29dea153ff15cdc32640088b7fc9df01c0 Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Sun, 18 May 2025 00:04:19 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8F=91=E5=B8=83=20[skip=20cliff]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 15 ++++++++------- CRSim/CRSim.csproj | 2 +- tool/generate-changelog.ps1 | 5 ----- 3 files changed, 9 insertions(+), 13 deletions(-) delete mode 100644 tool/generate-changelog.ps1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e5ae42..589f03f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,16 +79,17 @@ jobs: dotnet restore dotnet build --configuration Release --no-restore - - name: Install git-cliff - shell: pwsh - run: | - Invoke-WebRequest -Uri "https://github.com/orhun/git-cliff/releases/download/v2.8.0/git-cliff-2.8.0-x86_64-pc-windows-msvc.zip" -OutFile "git-cliff.zip" - Expand-Archive -Path "git-cliff.zip" -DestinationPath "." - $env:Path += ";$PWD" + - name: Generate changelog + uses: orhun/git-cliff-action@v4 + with: + config: cliff.toml + args: --verbose + env: + OUTPUT: CHANGELOG.md + GITHUB_REPO: ${{ github.repository }} - name: Publish run: | - ./tool/generate-changelog.ps1 dotnet publish -c Release -o out - name: Create Zip Package diff --git a/CRSim/CRSim.csproj b/CRSim/CRSim.csproj index d5acfd3..8560d1a 100644 --- a/CRSim/CRSim.csproj +++ b/CRSim/CRSim.csproj @@ -9,7 +9,7 @@ 13.0 CRSim.App Assets\CRSimIcon.ico - 2.2.1.2 + 2.2.1.3 diff --git a/tool/generate-changelog.ps1 b/tool/generate-changelog.ps1 deleted file mode 100644 index a1e75ce..0000000 --- a/tool/generate-changelog.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -# 获取最新的 Git tag -$latestTag = git describe --tags --abbrev=0 - -# 生成 changelog 并存储为最新 tag 名称的 Markdown 文件 -git cliff -t ${latestTag} --output "..\CHANGELOG.md"