File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ jobs:
3434 run : dotnet restore
3535
3636 - name : Build
37- run : dotnet build --configuration Release --no-restore
37+ run : dotnet build --configuration Release --no-restore /p:Version=${{ env.VERSION }} /p:InformationalVersion=${{ env.VERSION }}
3838
3939 - name : Test Code
4040 if : inputs.hasTests == true
4141 run : dotnet test --no-restore
4242
4343 - name : Pack
44- run : dotnet pack --configuration Release -o artifacts --no-build /p:Version=${{ env.VERSION }}
44+ run : dotnet pack --configuration Release -o artifacts --no-build /p:Version=${{ env.VERSION }} /p:InformationalVersion=${{ env.VERSION }}
4545
4646 - name : Publish to Nuget
4747 run : dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
5959 tag_name : v${{ env.VERSION }}
6060 generate_release_notes : true
6161 env :
62- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ jobs:
7474 run : dotnet restore ${{ inputs.solution }}
7575
7676 - name : Build
77- run : dotnet build ${{ inputs.solution }} --configuration Release --no-restore
77+ run : dotnet build ${{ inputs.solution }} --configuration Release --no-restore /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
7878
7979 - name : Test
8080 if : inputs.hasTests == true
8181 run : dotnet test --solution ${{ inputs.solution }} --configuration Release --no-restore
8282
8383 - name : Pack
84- run : dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version=${{ steps.version.outputs.package_version }}
84+ run : dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
8585
8686 - name : Publish to NuGet
87- run : dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
87+ run : dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
Original file line number Diff line number Diff line change @@ -45,14 +45,14 @@ jobs:
4545 run : dotnet restore ${{ inputs.solution }}
4646
4747 - name : Build
48- run : dotnet build ${{ inputs.solution }} --configuration Release --no-restore
48+ run : dotnet build ${{ inputs.solution }} --configuration Release --no-restore /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
4949
5050 - name : Test
5151 if : inputs.hasTests == true
5252 run : dotnet test --solution ${{ inputs.solution }} --configuration Release --no-restore
5353
5454 - name : Pack
55- run : dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version=${{ steps.version.outputs.package_version }}
55+ run : dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
5656
5757 - name : Publish to NuGet
58- run : dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
58+ run : dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments