From a9e71fc0c7564fbd33ae01aaf9ddda4dae43d677 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 9 May 2019 21:20:52 +0200 Subject: [PATCH] added newline to github release note, change nuget push and added some logging --- build/Build.cs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index 0531e929..a353a007 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -297,15 +297,22 @@ Version Version //.OnlyWhenDynamic(() => GitVersion.BranchName.Equals("master") || GitVersion.BranchName.Equals("origin/master")) .Executes(() => { - NuGetTasks.NuGetPush(s => + BinDirectory.GlobFiles("**/LogExpert.ColumnizerLib.*.nupkg").ForEach(file => { - s = s.SetApiKey(NugetApiKey) - .SetSource("https://api.nuget.org/v3/index.json") - .SetApiKey(NugetApiKey) - .SetTargetPath(BinDirectory / "LogExpert.ColumnizerLib.*.nupkg"); + Logger.Normal($"Publish nuget {file}"); - return s; + NuGetTasks.NuGetPush(s => + { + s = s.SetApiKey(NugetApiKey) + .SetSource("https://api.nuget.org/v3/index.json") + .SetApiKey(NugetApiKey) + .SetTargetPath(file); + + return s; + }); }); + + }); Target PublishChocolatey => _ => _ @@ -315,6 +322,8 @@ Version Version { ChocolateyDirectory.GlobFiles("**/*.nupkg").ForEach(file => { + Logger.Normal($"Publish chocolatey package {file}"); + Chocolatey($"push {file} --key {ChocolateyApiKey} --source https://push.chocolatey.org/", WorkingDirectory = ChocolateyDirectory); }); }); @@ -332,7 +341,7 @@ Version Version .SetReleaseNotes($"# Changes\r\n" + $"# Bugfixes\r\n" + $"# Contributors\r\n" + - $"Thanks to the contributors!" + + $"Thanks to the contributors!\r\n" + $"# Infos\r\n" + $"It might be necessary to unblock the Executables / Dlls to get everything working, especially Plugins (see #55, #13, #8).") .SetRepositoryName(repositoryInfo.repositoryName)