Skip to content

Commit

Permalink
Fix NuGet release version
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Feb 15, 2018
1 parent fc2cde6 commit 43d7da9
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ var publishDir = "./Publish";
Setup(context =>
{
gitVersion = GitVersion(new GitVersionSettings { OutputType = GitVersionOutput.Json });
Information("Informational Version : {0}", gitVersion.InformationalVersion);
Information("SemVer Version : {0}", gitVersion.SemVer);
Information("AssemblySemVer Version: {0}", gitVersion.AssemblySemVer);
Information("NuGet Version : {0}", gitVersion.NuGetVersion);
Information("IsLocalBuild : {0}", local);
Information("Informational Version : {0}", gitVersion.InformationalVersion);
Information("SemVer Version : {0}", gitVersion.SemVer);
Information("AssemblySemVer Version : {0}", gitVersion.AssemblySemVer);
Information("MajorMinorPatch Version: {0}", gitVersion.MajorMinorPatch);
Information("NuGet Version : {0}", gitVersion.NuGetVersion);
Information("IsLocalBuild : {0}", local);

Information(Figlet("MahApps.Metro"));
});
Expand Down Expand Up @@ -95,7 +96,7 @@ Task("Paket-Pack")
.Does(() =>
{
EnsureDirectoryExists(Directory(publishDir));
PaketPack(publishDir, new PaketPackSettings { Version = isReleaseBranch ? gitVersion.AssemblySemVer : gitVersion.NuGetVersion });
PaketPack(publishDir, new PaketPackSettings { Version = isReleaseBranch ? gitVersion.MajorMinorPatch : gitVersion.NuGetVersion });
});

Task("Zip-Demos")
Expand All @@ -118,8 +119,6 @@ Task("Unit-Tests")
});

Task("CreateRelease")
.WithCriteria(() => !isPullRequest)
.WithCriteria(() => isReleaseBranch)
.WithCriteria(() => !isTagged)
.Does(() =>
{
Expand All @@ -136,8 +135,8 @@ Task("CreateRelease")
}

GitReleaseManagerCreate(username, token, "MahApps", "MahApps.Metro", new GitReleaseManagerCreateSettings {
Milestone = gitVersion.SemVer,
Name = gitVersion.SemVer,
Milestone = gitVersion.MajorMinorPatch,
Name = "MahApps.Metro " + gitVersion.MajorMinorPatch,
Prerelease = false,
TargetCommitish = "master",
WorkingDirectory = "../"
Expand Down

0 comments on commit 43d7da9

Please sign in to comment.