Skip to content

Commit

Permalink
No suffic for tagged builds
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Jun 26, 2020
1 parent c9e90bc commit 8b314e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ var version = releaseNotes.Version.ToString();
var binDir = MakeAbsolute(Directory("./src/Cake.Git/bin/" + configuration + "/net461"));
var nugetRoot = "./nuget/";
var artifactsRoot = MakeAbsolute(Directory("./artifacts/"));
var semVersion = isLocalBuild
var semVersion = isLocalBuild || (AppVeyor.Environment.Repository.Tag.IsTag
&& !string.IsNullOrWhiteSpace(AppVeyor.Environment.Repository.Tag.Name))
? version
: string.Concat(version, "-build-", AppVeyor.Environment.Build.Number.ToString("0000"));

Expand Down
2 changes: 1 addition & 1 deletion src/SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
[assembly: AssemblyVersion("0.21.0")]
[assembly: AssemblyFileVersion("0.21.0")]
[assembly: AssemblyInformationalVersion("0.21.0")]
[assembly: AssemblyCopyright("Copyright © WCOM AB 2019")]
[assembly: AssemblyCopyright("Copyright © WCOM AB 2020")]
[assembly: CLSCompliant(true)]

0 comments on commit 8b314e3

Please sign in to comment.