Skip to content

Commit

Permalink
github
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Nov 20, 2024
1 parent b57c785 commit 79764d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/alpha-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Run: Test, Pack, Publish'
run: ./build.cmd Test Pack Publish
- name: 'Run: Publish'
run: ./build.cmd Publish
env:
FeedzNuGetApiKey: ${{ secrets.FEEDZ_NUGET_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
GitHubActionsImage.UbuntuLatest,
FetchDepth = 0,
OnPushBranches = new[] { DevelopBranch },
InvokedTargets = new[] { nameof(ITest.Test), nameof(IPack.Pack), nameof(IPublish.Publish) },
InvokedTargets = new[] { nameof(IPublish.Publish) },
EnableGitHubToken = true,
PublishArtifacts = false,
ImportSecrets = new[] { nameof(FeedzNuGetApiKey) })]
Expand Down
1 change: 1 addition & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ from framework in project.GetTargetFrameworks()

Target ITest.Test => _ => _
.Inherit<ITest>()
.OnlyWhenStatic(() => Host is not GitHubActions { Workflow: AlphaDeployment })
.Partition(2);

bool IReportCoverage.CreateCoverageHtmlReport => true;
Expand Down
2 changes: 1 addition & 1 deletion source/Nuke.Tooling/ToolOptions.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static partial class ToolOptionsExtensions

/// <inheritdoc cref="ToolOptions.ProcessExitHandling"/>
[Builder(Type = typeof(ToolOptions), Property = nameof(ToolOptions.ProcessExitHandling))]
public static T SetProcessExitHandling<T>(this T o, LogEventLevel? value) where T : ToolOptions => o.Modify(b => b.Set(() => o.ProcessExitHandling, value));
public static T SetProcessExitHandling<T>(this T o, bool? value) where T : ToolOptions => o.Modify(b => b.Set(() => o.ProcessExitHandling, value));

/// <inheritdoc cref="ToolOptions.ProcessExitHandling"/>
[Builder(Type = typeof(ToolOptions), Property = nameof(ToolOptions.ProcessExitHandling))]
Expand Down

0 comments on commit 79764d4

Please sign in to comment.