Skip to content

Commit

Permalink
added newline to github release note, change nuget push and added som…
Browse files Browse the repository at this point in the history
…e logging
  • Loading branch information
zarunbal committed May 9, 2019
1 parent 2f7c2a7 commit a9e71fc
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => _ => _
Expand All @@ -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);
});
});
Expand All @@ -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)
Expand Down

0 comments on commit a9e71fc

Please sign in to comment.