File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 name : Build .NET
1212 runs-on : windows-latest
1313 outputs : # https://stackoverflow.com/questions/59175332/using-output-from-a-previous-job-in-a-new-one-in-a-github-action
14- Version : ${{ steps.gitversion.outputs.SemVer }}
14+ Version : ${{ steps.gitversion.outputs.MajorMinorPatch }}
1515 CommitsSinceVersionSource : ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
1616 steps :
1717 - uses : actions/checkout@v6
2828 id : gitversion # step id used as reference for output values
2929 - name : Display GitVersion outputs
3030 run : |
31- echo "Version: ${{ steps.gitversion.outputs.SemVer }}"
31+ echo "Version: ${{ steps.gitversion.outputs.MajorMinorPatch }}"
3232 echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
3333
3434 - uses : actions/checkout@v6
4848 github-token : ${{ secrets.GITHUB_TOKEN }}
4949 path-to-lcov : src/MandMCounter.Tests/TestResults/coverage.info
5050 - name : PublishService
51- run : dotnet publish src/MandMCounter.Service/MandMCounter.Service.csproj --configuration release --output ${{ github.workspace }}/service -p:Version='${{ steps.gitversion.outputs.SemVer }}'
51+ run : dotnet publish src/MandMCounter.Service/MandMCounter.Service.csproj --configuration release --output ${{ github.workspace }}/service -p:Version='${{ steps.gitversion.outputs.MajorMinorPatch }}'
5252 - name : Pack dll to NuGet package
53- run : dotnet pack src/MandMCounter.Core/MandMCounter.Core.csproj --configuration release -p:Version='${{ steps.gitversion.outputs.SemVer }}'
53+ run : dotnet pack src/MandMCounter.Core/MandMCounter.Core.csproj --configuration release -p:Version='${{ steps.gitversion.outputs.MajorMinorPatch }}'
5454 - name : Publish Artifact
5555 uses : actions/upload-artifact@v5
5656 with :
You can’t perform that action at this time.
0 commit comments