Mark non master packages as development

This commit is contained in:
Harry 2022-01-26 20:26:04 +01:00
parent e9717cc073
commit 0915bf8076
No known key found for this signature in database
GPG Key ID: 79058EE8D5714A75

View File

@ -14,20 +14,20 @@ var configuration = Argument("Configuration", "Release");
var msbuildsettings = new DotNetCoreMSBuildSettings();
var list = new List<GAssembly>();
private void ParseVersion()
{
if (!string.IsNullOrEmpty(EnvironmentVariable("GITHUB_ACTIONS")))
Settings.Version = "3.24.24." + EnvironmentVariable("GITHUB_RUN_NUMBER");
Console.WriteLine("Version: " + Settings.Version);
}
// TASKS
Task("Init")
.Does(() =>
{
ParseVersion();
if (!string.IsNullOrEmpty(EnvironmentVariable("GITHUB_ACTIONS")))
{
Settings.Version = "3.24.24." + EnvironmentVariable("GITHUB_RUN_NUMBER");
if (EnvironmentVariable("GITHUB_REF") != "refs/heads/master")
Settings.Version += "-develop";
}
Console.WriteLine("Version: " + Settings.Version);
// Assign some common properties
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);