Skip to content

Commit

Permalink
Set VersionPrefix in build step
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Mar 18, 2024
1 parent 744bf7a commit 06c0723
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 06c0723

Please sign in to comment.