From 515297502c661bb67b929ccafd18ce697d5f4092 Mon Sep 17 00:00:00 2001 From: Hasan Manzak Date: Thu, 23 Feb 2023 02:06:26 +0300 Subject: [PATCH] cleanups --- build/Build.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index ecb53af..4fbd27e 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -13,7 +13,6 @@ using Nuke.Common.Utilities.Collections; using static Nuke.Common.IO.FileSystemTasks; using static Nuke.Common.Tools.DotNet.DotNetTasks; -[CheckBuildProjectConfigurations] [ShutdownDotNetAfterServerBuild] [GitHubActions("ci", GitHubActionsImage.UbuntuLatest, OnPullRequestBranches = new[] {"master", "releases/*"}, @@ -34,7 +33,7 @@ class Build : NukeBuild [GitRepository] readonly GitRepository GitRepository; - [GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion; + [GitVersion] readonly GitVersion GitVersion; [Solution] readonly Solution Solution; @@ -102,8 +101,14 @@ class Build : NukeBuild .Requires(() => Configuration.Equals(Configuration.Release)) .Executes(() => { - Glob.Files(OutputDirectory, "*.nupkg") - .NotEmpty() + var files = Glob + .Files(OutputDirectory, "*.nupkg") + .NotNull() + .ToList(); + + Assert.NotEmpty(files); + + files .ForEach(x => { DotNetNuGetPush(s => s