Skip to content

Commit

Permalink
Use tag for package version, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Dec 23, 2015
1 parent c01d346 commit 104ca9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ Task("InitializeBuild")
{
var tag = AppVeyor.Environment.Repository.Tag;
var buildNumber = AppVeyor.Environment.Build.Number;
packageVersion = version + "-CI-" + buildNumber + dbgSuffix;

packageVersion = tag.IsTag ? tag.Name : version + "-CI-" + buildNumber + dbgSuffix;

AppVeyor.UpdateBuildVersion(packageVersion);
}
});
Expand Down

0 comments on commit 104ca9f

Please sign in to comment.