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 msbuildsettings = new DotNetCoreMSBuildSettings();
|
||||||
var list = new List<GAssembly>();
|
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
|
// TASKS
|
||||||
|
|
||||||
Task("Init")
|
Task("Init")
|
||||||
.Does(() =>
|
.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
|
// Assign some common properties
|
||||||
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);
|
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);
|
||||||
|
|
Loading…
Reference in a new issue