Skip to content

Commit

Permalink
Update GitVersion and react to changes (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Aug 6, 2024
1 parent 91b13b9 commit cafb271
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
fetch-depth: 0 # Required for GitVersion

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v2
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: '5.x'
versionSpec: '6.x'

- name: Determine Version
uses: gittools/actions/gitversion/execute@v2
uses: gittools/actions/gitversion/execute@v3.0.0
id: gitversion
with:
useConfigFile: true
Expand All @@ -59,7 +59,11 @@ jobs:
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore
run: >
dotnet build
--configuration Release
--no-restore
-p:VersionPrefix=${{ steps.gitversion.outputs.fullSemVer }}
- name: Test
run: dotnet test --configuration Release --no-build
Expand All @@ -70,8 +74,7 @@ jobs:
--configuration Release
--no-build
--output ${{ github.workspace }}/drop
-p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }}
-p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }}
-p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Only changing the mode from 'ContinuousDelivery' to 'ContinuousDeployment' results in better numbers (no '+' in them)
# To get the default configuration comment out all the contents of this file and run 'gitversion /showconfig'
mode: ContinuousDeployment
branches:
pull-request:
label: pr

0 comments on commit cafb271

Please sign in to comment.