Skip to content

Commit

Permalink
Use GitVersion to handle build number
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGosselin committed May 25, 2020
1 parent 2dde067 commit 8e354d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch all history for all tags and branches so GitVersion can work its magic
run: git fetch --prune --unshallow

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
Expand Down
11 changes: 11 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mode: ContinuousDelivery
branches:
# override increment to prevent build Warning:
# Failed to inherit Increment branch configuration, ended up with: master, origin/master
pull-request:
increment: Patch
feature:
increment: Patch
ignore:
sha: []
merge-message-formats: {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
<PackageReference Include="GitVersionTask" Version="5.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 8e354d2

Please sign in to comment.