Skip to content

Commit cc34634

Browse files
committed
Use tags for versions
1 parent 0315a50 commit cc34634

29 files changed

+467
-339
lines changed

.github/workflows/Build_main_and_publish_to_nuget.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ name: Build_main_and_publish_to_nuget
1818

1919
on:
2020
push:
21-
branches:
22-
- main
21+
tags:
22+
- 'v*'
2323

2424
jobs:
2525
ubuntu-latest:

.github/workflows/Continuous_build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
name: Continuous_build
1818

19-
on:
20-
push:
21-
branches-ignore:
22-
- main
19+
on: [push]
2320

2421
jobs:
2522
ubuntu-latest:

.nuke/build.schema.json

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,68 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"$ref": "#/definitions/build",
4-
"title": "Build Schema",
3+
"properties": {
4+
"Configuration": {
5+
"type": "string",
6+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
7+
"enum": [
8+
"Debug",
9+
"Release"
10+
]
11+
},
12+
"NuGetApiKey": {
13+
"type": "string",
14+
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
15+
},
16+
"Solution": {
17+
"type": "string",
18+
"description": "Path to a solution file that is automatically loaded"
19+
}
20+
},
521
"definitions": {
6-
"build": {
7-
"type": "object",
22+
"Host": {
23+
"type": "string",
24+
"enum": [
25+
"AppVeyor",
26+
"AzurePipelines",
27+
"Bamboo",
28+
"Bitbucket",
29+
"Bitrise",
30+
"GitHubActions",
31+
"GitLab",
32+
"Jenkins",
33+
"Rider",
34+
"SpaceAutomation",
35+
"TeamCity",
36+
"Terminal",
37+
"TravisCI",
38+
"VisualStudio",
39+
"VSCode"
40+
]
41+
},
42+
"ExecutableTarget": {
43+
"type": "string",
44+
"enum": [
45+
"Clean",
46+
"Compile",
47+
"Pack",
48+
"Publish",
49+
"PublishToGitHubNuget",
50+
"Restore",
51+
"Test"
52+
]
53+
},
54+
"Verbosity": {
55+
"type": "string",
56+
"description": "",
57+
"enum": [
58+
"Verbose",
59+
"Normal",
60+
"Minimal",
61+
"Quiet"
62+
]
63+
},
64+
"NukeBuild": {
865
"properties": {
9-
"Configuration": {
10-
"type": "string",
11-
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
12-
"enum": [
13-
"Debug",
14-
"Release"
15-
]
16-
},
1766
"Continue": {
1867
"type": "boolean",
1968
"description": "Indicates to continue a previously failed build attempt"
@@ -23,34 +72,13 @@
2372
"description": "Shows the help text for this build assembly"
2473
},
2574
"Host": {
26-
"type": "string",
2775
"description": "Host for execution. Default is 'automatic'",
28-
"enum": [
29-
"AppVeyor",
30-
"AzurePipelines",
31-
"Bamboo",
32-
"Bitbucket",
33-
"Bitrise",
34-
"GitHubActions",
35-
"GitLab",
36-
"Jenkins",
37-
"Rider",
38-
"SpaceAutomation",
39-
"TeamCity",
40-
"Terminal",
41-
"TravisCI",
42-
"VisualStudio",
43-
"VSCode"
44-
]
76+
"$ref": "#/definitions/Host"
4577
},
4678
"NoLogo": {
4779
"type": "boolean",
4880
"description": "Disables displaying the NUKE logo"
4981
},
50-
"NuGetApiKey": {
51-
"type": "string",
52-
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
53-
},
5482
"Partition": {
5583
"type": "string",
5684
"description": "Partition to use on CI"
@@ -74,49 +102,22 @@
74102
"type": "array",
75103
"description": "List of targets to be skipped. Empty list skips all dependencies",
76104
"items": {
77-
"type": "string",
78-
"enum": [
79-
"Clean",
80-
"Compile",
81-
"Pack",
82-
"Publish",
83-
"PublishToGitHubNuget",
84-
"Restore",
85-
"Test"
86-
]
105+
"$ref": "#/definitions/ExecutableTarget"
87106
}
88107
},
89-
"Solution": {
90-
"type": "string",
91-
"description": "Path to a solution file that is automatically loaded"
92-
},
93108
"Target": {
94109
"type": "array",
95110
"description": "List of targets to be invoked. Default is '{default_target}'",
96111
"items": {
97-
"type": "string",
98-
"enum": [
99-
"Clean",
100-
"Compile",
101-
"Pack",
102-
"Publish",
103-
"PublishToGitHubNuget",
104-
"Restore",
105-
"Test"
106-
]
112+
"$ref": "#/definitions/ExecutableTarget"
107113
}
108114
},
109115
"Verbosity": {
110-
"type": "string",
111116
"description": "Logging verbosity during build execution. Default is 'Normal'",
112-
"enum": [
113-
"Minimal",
114-
"Normal",
115-
"Quiet",
116-
"Verbose"
117-
]
117+
"$ref": "#/definitions/Verbosity"
118118
}
119119
}
120120
}
121-
}
121+
},
122+
"$ref": "#/definitions/NukeBuild"
122123
}

0 commit comments

Comments
 (0)