mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-07 10:05:49 +08:00
ci: 修复自动发布 [skip cliff]
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<LangVersion>13.0</LangVersion>
|
||||
<StartupObject>CRSim.App</StartupObject>
|
||||
<ApplicationIcon>Assets\CRSimIcon.ico</ApplicationIcon>
|
||||
<Version>2.2.1.2</Version>
|
||||
<Version>2.2.1.3</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# 获取最新的 Git tag
|
||||
$latestTag = git describe --tags --abbrev=0
|
||||
|
||||
# 生成 changelog 并存储为最新 tag 名称的 Markdown 文件
|
||||
git cliff -t ${latestTag} --output "..\CHANGELOG.md"
|
||||
Reference in New Issue
Block a user