Mark non master packages as development
This commit is contained in:
parent
e9717cc073
commit
0915bf8076
1 changed files with 9 additions and 9 deletions
18
build.cake
18
build.cake
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue