Commit 9587b2cf authored by Martin Finkel's avatar Martin Finkel

CD: Fix continuous delivery script for existing pre-release nugets

The CD modifies version suffixes, override if there is an existing one,
So that CD works even for current pre-release packages.
parent 9d9f4419
......@@ -15,7 +15,6 @@ var suffixVersion = $"alpha-{DateTime.Today.ToString("yyyyMMdd")}-{BuildSystem.A
var feedzLVSSource = "https://f.feedz.io/videolan/preview/nuget/index.json";
var FEEDZ = "FEEDZ";
const uint totalPackageCount = 9;
var buildProp = new FilePath("../src/Directory.build.props");
//////////////////////////////////////////////////////////////////////
// PREPARATION
......@@ -96,12 +95,16 @@ Task("CIDeploy")
void Build(string project)
{
var settings = new MSBuildSettings();
settings.SetConfiguration(configuration)
.WithProperty("PackageOutputPath", MakeAbsolute(artifactsDir).FullPath);
if(isCiBuild)
{
XmlPoke(buildProp, "//Project/PropertyGroup/VersionSuffix", suffixVersion);
settings.WithProperty("VersionSuffix", suffixVersion);
}
MSBuild(project, settings => settings.SetConfiguration(configuration).WithProperty("PackageOutputPath", MakeAbsolute(artifactsDir).FullPath));
MSBuild(project, settings);
}
//////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment