File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change
1
+ # ------------------------------------------------------------------------------
2
+ # <auto-generated>
3
+ #
4
+ # This code was generated.
5
+ #
6
+ # - To turn off auto-generation set:
7
+ #
8
+ # [GitHubActions (AutoGenerate = false)]
9
+ #
10
+ # - To trigger manual generation invoke:
11
+ #
12
+ # nuke --generate-configuration GitHubActions_Build --host GitHubActions
13
+ #
14
+ # </auto-generated>
15
+ # ------------------------------------------------------------------------------
16
+
17
+ name : Build
18
+
19
+ on :
20
+ push :
21
+ branches :
22
+ - main
23
+ - release/**
24
+ pull_request :
25
+ branches :
26
+ - develop
27
+ - release/**
28
+
29
+ jobs :
30
+ windows-latest :
31
+ name : windows-latest
32
+ runs-on : windows-latest
33
+ steps :
34
+ - uses : actions/checkout@v1
35
+ - name : Run './build.cmd CI'
36
+ run : ./build.cmd CI
37
+ env :
38
+ githubtoken : ${{ secrets.GITHUB_TOKEN }}
39
+ - uses : actions/upload-artifact@v1
40
+ with :
41
+ name : Artifacts
42
+ path : Artifacts
Original file line number Diff line number Diff line change 6
6
using System . Xml ;
7
7
using BuildHelpers ;
8
8
using Nuke . Common ;
9
+ using Nuke . Common . CI . GitHubActions ;
9
10
using Nuke . Common . Execution ;
10
11
using Nuke . Common . Git ;
11
12
using Nuke . Common . IO ;
23
24
using static Nuke . Common . Tools . DotNet . DotNetTasks ;
24
25
using static Nuke . Common . Tools . Git . GitTasks ;
25
26
using static Nuke . Common . Tools . MSBuild . MSBuildTasks ;
26
-
27
+ using Nuke . Common . CI ;
28
+
29
+ [ GitHubActions (
30
+ name : "Build" ,
31
+ image : GitHubActionsImage . WindowsLatest ,
32
+ ImportGitHubTokenAs = "githubtoken" ,
33
+ InvokedTargets = new [ ] { "CI" } ,
34
+ OnPullRequestBranches = new [ ] { "develop" , "release/**" } ,
35
+ OnPushBranches = new [ ] { "main" , "release/**" } ) ]
27
36
[ CheckBuildProjectConfigurations ]
28
37
class Build : NukeBuild
29
38
{
@@ -153,6 +162,7 @@ public Build()
153
162
. DependsOn ( Compile )
154
163
. DependsOn ( SetBranch )
155
164
. DependsOn ( TagRelease )
165
+ . Produces ( ArtifactsDirectory / "*.zip" )
156
166
. Executes ( ( ) =>
157
167
{
158
168
EnsureCleanDirectory ( StagingDirectory ) ;
@@ -222,4 +232,12 @@ public Build()
222
232
excludeDirectory : d => excludedFolders . Contains ( d . Name ) ,
223
233
excludeFile : f => excludedExtensions . Contains ( f . Extension ) ) ;
224
234
} ) ;
235
+
236
+ Target CI => _ => _
237
+ . DependsOn ( Package )
238
+ . DependsOn ( TagRelease )
239
+ . Executes ( ( ) =>
240
+ {
241
+
242
+ } ) ;
225
243
}
You can’t perform that action at this time.
0 commit comments