mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 21:42:38 +01:00
cleanups
This commit is contained in:
parent
278cb7457a
commit
515297502c
@ -13,7 +13,6 @@ using Nuke.Common.Utilities.Collections;
|
|||||||
using static Nuke.Common.IO.FileSystemTasks;
|
using static Nuke.Common.IO.FileSystemTasks;
|
||||||
using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
||||||
|
|
||||||
[CheckBuildProjectConfigurations]
|
|
||||||
[ShutdownDotNetAfterServerBuild]
|
[ShutdownDotNetAfterServerBuild]
|
||||||
[GitHubActions("ci", GitHubActionsImage.UbuntuLatest,
|
[GitHubActions("ci", GitHubActionsImage.UbuntuLatest,
|
||||||
OnPullRequestBranches = new[] {"master", "releases/*"},
|
OnPullRequestBranches = new[] {"master", "releases/*"},
|
||||||
@ -34,7 +33,7 @@ class Build : NukeBuild
|
|||||||
|
|
||||||
[GitRepository] readonly GitRepository GitRepository;
|
[GitRepository] readonly GitRepository GitRepository;
|
||||||
|
|
||||||
[GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion;
|
[GitVersion] readonly GitVersion GitVersion;
|
||||||
|
|
||||||
[Solution] readonly Solution Solution;
|
[Solution] readonly Solution Solution;
|
||||||
|
|
||||||
@ -102,8 +101,14 @@ class Build : NukeBuild
|
|||||||
.Requires(() => Configuration.Equals(Configuration.Release))
|
.Requires(() => Configuration.Equals(Configuration.Release))
|
||||||
.Executes(() =>
|
.Executes(() =>
|
||||||
{
|
{
|
||||||
Glob.Files(OutputDirectory, "*.nupkg")
|
var files = Glob
|
||||||
.NotEmpty()
|
.Files(OutputDirectory, "*.nupkg")
|
||||||
|
.NotNull()
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
Assert.NotEmpty(files);
|
||||||
|
|
||||||
|
files
|
||||||
.ForEach(x =>
|
.ForEach(x =>
|
||||||
{
|
{
|
||||||
DotNetNuGetPush(s => s
|
DotNetNuGetPush(s => s
|
||||||
|
Loading…
Reference in New Issue
Block a user