Permalink
Browse files

Use tag for package version, if present

  • Loading branch information...
1 parent c01d346 commit 104ca9f1a60f33939a9952bd7877348cbaaa6a69 @CharliePoole CharliePoole committed Dec 23, 2015
Showing with 3 additions and 1 deletion.
  1. +3 −1 build.cake
View
@@ -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);
}
});

0 comments on commit 104ca9f

Please sign in to comment.