From 06c072389920f9ab0be70e4bfd325eb0d3ccd96a Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Mon, 18 Mar 2024 08:51:50 +0300 Subject: [PATCH] Set VersionPrefix in build step --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 071300d..c3c711d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,11 @@ jobs: run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: > + dotnet build + --configuration Release + --no-restore + -p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }} - name: Test run: dotnet test --configuration Release --no-build @@ -75,7 +79,6 @@ jobs: --no-build --output ${{ github.workspace }}/drop -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} - -p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }} - name: Publish Artifact uses: actions/upload-artifact@v4