From 6426a13852d7244557b15026ca09cba38f7b596a Mon Sep 17 00:00:00 2001 From: movingsam Date: Sun, 1 Mar 2026 01:26:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8Egit=20tag=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E5=B9=B6=E4=BC=A0=E9=80=92=E7=BB=99?= =?UTF-8?q?dotnet=20pack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/nuget.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/nuget.yml b/.gitea/workflows/nuget.yml index 2f0b5bd..5293248 100644 --- a/.gitea/workflows/nuget.yml +++ b/.gitea/workflows/nuget.yml @@ -22,13 +22,18 @@ jobs: with: dotnet-version: "10.0.x" + - name: Get version from tag + if: startsWith(github.ref, 'refs/tags/v') + id: version + run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + - name: Pack Domain if: startsWith(github.ref, 'refs/tags/v') - run: dotnet pack Fengling.Platform.Domain/Fengling.Platform.Domain.csproj -c Release -o ./packages --version-suffix "" + run: dotnet pack Fengling.Platform.Domain/Fengling.Platform.Domain.csproj -c Release -o ./packages -p:PackageVersion=${{ steps.version.outputs.VERSION }} - name: Pack Infrastructure if: startsWith(github.ref, 'refs/tags/v') - run: dotnet pack Fengling.Platform.Infrastructure/Fengling.Platform.Infrastructure.csproj -c Release -o ./packages --version-suffix "" + run: dotnet pack Fengling.Platform.Infrastructure/Fengling.Platform.Infrastructure.csproj -c Release -o ./packages -p:PackageVersion=${{ steps.version.outputs.VERSION }} - name: Push to Gitea if: startsWith(github.ref, 'refs/tags/v')