Skip to content

Commit

Permalink
Use GitVersionTask and SIL.ReleaseTasks
Browse files Browse the repository at this point in the history
This will increment the version number based on Git commits.
  • Loading branch information
ermshiperete committed Aug 29, 2019
1 parent 8853fd1 commit cb328b2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- internal housekeeping

## [1.1.1] - 2019-07-24

### Fixed
Expand Down
21 changes: 21 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
assembly-versioning-scheme: MajorMinor
mode: ContinuousDeployment
branches:
master:
tag: beta
regex: (origin/)?master
hotfix:
tag: beta
regex: (origin/)?hotfix[/-]
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
pull-request:
mode: ContinuousDeployment
tag: PR
feature:
regex: feature[/-]
mode: ContinuousDeployment
tag: alpha
5 changes: 5 additions & 0 deletions SIL.NuGetCleaner.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{465F739F-BE7A-4C10-9A1A-F60FECD123C0}"
ProjectSection(SolutionItems) = preProject
CHANGELOG.md = CHANGELOG.md
.editorconfig = .editorconfig
.gitignore = .gitignore
GitVersion.yml = GitVersion.yml
README.md = README.md
renovate.json = renovate.json
EndProjectSection
EndProject
Global
Expand Down
3 changes: 2 additions & 1 deletion SIL.NuGetCleaner/SIL.NuGetCleaner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/sillsdev/SIL.NuGetCleaner</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Version>1.1.0</Version>

<PackAsTool>true</PackAsTool>
<ToolCommandName>nugetclean</ToolCommandName>
Expand All @@ -28,8 +27,10 @@ See full changelog at https://github.com/sillsdev/SIL.NuGetCleaner/blob/master/C

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.6.0" />
<PackageReference Include="GitVersionTask" Version="5.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NuGet.Versioning" Version="5.2.0+f6f9fb481b9fbf14154d484dbf376446c9b0d274" />
<PackageReference Include="SIL.ReleaseTasks" Version="2.2.0" />
</ItemGroup>

</Project>

0 comments on commit cb328b2

Please sign in to comment.