Skip to content

Commit

Permalink
Make build version unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Kralizek committed Jan 8, 2019
1 parent 06238a5 commit 2f4e1e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ Task("Version")
state.Version = new VersionInfo
{
SemVer = version.SemVer
SemVer = version.SemVer,
FullSemVer = version.FullSemVer
};
Information($"Package version: {version.SemVer}");
Information($"Build version: {version.FullSemVer}");
if (BuildSystem.IsRunningOnAppVeyor)
{
AppVeyor.UpdateBuildVersion(state.Version.SemVer);
AppVeyor.UpdateBuildVersion(state.Version.FullSemVer);
}
Information(version.SemVer);
});

Task("Restore")
Expand Down Expand Up @@ -203,6 +205,7 @@ Task("Push")
.IsDependentOn("UploadPackagesToAppVeyor");

Task("Full")
.IsDependentOn("Version")
.IsDependentOn("Restore")
.IsDependentOn("Build")
.IsDependentOn("Test")
Expand Down
2 changes: 2 additions & 0 deletions build/types.cake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class BuildPaths
public class VersionInfo
{
public string SemVer { get; set; }

public string FullSemVer { get; set; }
}

[Flags]
Expand Down

0 comments on commit 2f4e1e4

Please sign in to comment.