Skip to content

Commit da9f052

Browse files
authored
Merge pull request #283 from SamSmithNZ-dotcom/samsmithnz-patch-1
Update dotnet.yml
2 parents f80203a + 1dcc298 commit da9f052

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
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
@@ -28,7 +28,7 @@ jobs:
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
@@ -48,9 +48,9 @@ jobs:
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:

0 commit comments

Comments
 (0)