From a702bb063908e15438679a1ffe3b330912b3a5e4 Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Fri, 12 Sep 2025 23:55:58 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c65eee..0ac1ca3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,13 @@ jobs: with: fetch-depth: 0 # 获取全部提交历史以便比较标签 - - name: Extract version from csproj + - name: Extract version from props id: get_version shell: pwsh run: | - [xml]$csproj = Get-Content "./CRSim/CRSim.csproj" + [xml]$props = Get-Content ".Directory.Build.props" # 确保选择包含Version的PropertyGroup - $version = $csproj.Project.PropertyGroup.Version + $version = $props.Project.PropertyGroup.Version echo "Detected version: $version" # 将版本设置为步骤输出 echo "version=$version" >> $env:GITHUB_OUTPUT