Skip to content

Commit

Permalink
Added InformationalVersion to build of NuGet package.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshClose committed Feb 29, 2024
1 parent cfd40cd commit 50f413d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ jobs:
uses: actions/setup-dotnet@v4
- name: Display .NET Version
run: dotnet --version
- name: Build
run: dotnet build src/CsvHelper --configuration Release -p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0 -p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }}
- name: Create NuGet Package
run: dotnet pack src/CsvHelper --no-build --configuration Release -o output -p:PackageVersion=${{ steps.gitversion.outputs.version }}
run: >
dotnet pack src/CsvHelper
--configuration Release
-o output
-p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0
-p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }}
-p:InformationalVersion=${{ steps.gitversion.outputs.version }}
-p:PackageVersion=${{ steps.gitversion.outputs.version }}
- name: Display Output
run: dir output
- name: Publish NuGet Package
Expand Down

0 comments on commit 50f413d

Please sign in to comment.