This commit is contained in:
Hasan Manzak 2023-02-23 02:06:26 +03:00
parent 278cb7457a
commit 515297502c
No known key found for this signature in database
GPG Key ID: C1573806B673A138

View File

@ -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