From ae0ba91e93fb61167f05da6afcffbcbee488b381 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Mon, 11 Dec 2023 12:27:17 -0300 Subject: [PATCH] Update prerelease --- Build/.nuke/build.schema.json | 152 ++++++++++++++++++++++++++++++++++ Build/Build.cs | 2 +- 2 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 Build/.nuke/build.schema.json diff --git a/Build/.nuke/build.schema.json b/Build/.nuke/build.schema.json new file mode 100644 index 0000000..ec1cdeb --- /dev/null +++ b/Build/.nuke/build.schema.json @@ -0,0 +1,152 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/build", + "title": "Build Schema", + "definitions": { + "build": { + "type": "object", + "properties": { + "Continue": { + "type": "boolean", + "description": "Indicates to continue a previously failed build attempt" + }, + "Folder": { + "type": "string" + }, + "GitHubToken": { + "type": "string", + "default": "Secrets must be entered via 'nuke :secrets [profile]'" + }, + "Help": { + "type": "boolean", + "description": "Shows the help text for this build assembly" + }, + "Host": { + "type": "string", + "description": "Host for execution. Default is 'automatic'", + "enum": [ + "AppVeyor", + "AzurePipelines", + "Bamboo", + "Bitbucket", + "Bitrise", + "GitHubActions", + "GitLab", + "Jenkins", + "Rider", + "SpaceAutomation", + "TeamCity", + "Terminal", + "TravisCI", + "VisualStudio", + "VSCode" + ] + }, + "MainName": { + "type": "string" + }, + "NoLogo": { + "type": "boolean", + "description": "Disables displaying the NUKE logo" + }, + "NugetApiKey": { + "type": "string", + "default": "Secrets must be entered via 'nuke :secrets [profile]'" + }, + "NugetApiUrl": { + "type": "string", + "default": "Secrets must be entered via 'nuke :secrets [profile]'" + }, + "Partition": { + "type": "string", + "description": "Partition to use on CI" + }, + "Plan": { + "type": "boolean", + "description": "Shows the execution plan (HTML)" + }, + "PreReleaseFilter": { + "type": "array", + "items": { + "type": "string" + } + }, + "Profile": { + "type": "array", + "description": "Defines the profiles to load", + "items": { + "type": "string" + } + }, + "ReleaseFolder": { + "type": "string" + }, + "ReleaseNameVersion": { + "type": "boolean" + }, + "Root": { + "type": "string", + "description": "Root directory during build execution" + }, + "SignFile": { + "type": "string", + "default": "Secrets must be entered via 'nuke :secrets [profile]'" + }, + "SignPassword": { + "type": "string", + "default": "Secrets must be entered via 'nuke :secrets [profile]'" + }, + "Skip": { + "type": "array", + "description": "List of targets to be skipped. Empty list skips all dependencies", + "items": { + "type": "string", + "enum": [ + "Build", + "Clean", + "Compile", + "GitPreRelease", + "GitRelease", + "Pack", + "PrePack", + "Release", + "Sign" + ] + } + }, + "Solution": { + "type": "string", + "description": "Path to a solution file that is automatically loaded" + }, + "Target": { + "type": "array", + "description": "List of targets to be invoked. Default is '{default_target}'", + "items": { + "type": "string", + "enum": [ + "Build", + "Clean", + "Compile", + "GitPreRelease", + "GitRelease", + "Pack", + "PrePack", + "Release", + "Sign" + ] + } + }, + "Verbosity": { + "type": "string", + "description": "Logging verbosity during build execution. Default is 'Normal'", + "enum": [ + "Minimal", + "Normal", + "Quiet", + "Verbose" + ] + } + } + } + } +} diff --git a/Build/Build.cs b/Build/Build.cs index cde0dc3..1714276 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -3,7 +3,7 @@ using ricaun.Nuke; using ricaun.Nuke.Components; -class Build : NukeBuild, IPublishPack +class Build : NukeBuild, IPublishPack, IPrePack { public static int Main() => Execute(x => x.From().Build); } \ No newline at end of file