From 50f413de448146f163f8f598094245b56a1fb3e1 Mon Sep 17 00:00:00 2001 From: Josh Close Date: Thu, 29 Feb 2024 10:54:40 -0600 Subject: [PATCH] Added InformationalVersion to build of NuGet package. --- .github/workflows/publish.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d72ca47db..8d8c76d64 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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