@@ -52,7 +52,7 @@ class Build : NukeBuild
52
52
readonly Configuration Configuration = IsLocalBuild ? Configuration . Debug : Configuration . Release ;
53
53
54
54
[ Parameter ( "Github Token" ) ]
55
- readonly string GithubToken ;
55
+ readonly string GithubToken = Environment . GetEnvironmentVariable ( "github-token" ) ;
56
56
57
57
[ Solution ] readonly Solution Solution ;
58
58
[ GitRepository ] readonly GitRepository GitRepository ;
@@ -77,12 +77,10 @@ class Build : NukeBuild
77
77
. Before ( Package )
78
78
. Executes ( ( ) =>
79
79
{
80
- using ( var block = Logger . Block ( "Info" ) )
81
- {
82
- Logger . Normal ( Configuration ) ;
83
- }
84
80
InstallFiles = GlobFiles ( RootDirectory , "*.txt" , "*.dnn" ) ;
81
+ Logger . Normal ( $ "Found install files: { Helpers . Dump ( InstallFiles ) } ") ;
85
82
IsInDesktopModules = RootDirectory . Parent . ToString ( ) . EndsWith ( "DesktopModules" ) ;
83
+ Logger . Normal ( IsInDesktopModules ? "We are" : "We are not" + " in a DesktopModules folder." ) ;
86
84
} ) ;
87
85
88
86
Target Clean => _ => _
@@ -92,6 +90,7 @@ class Build : NukeBuild
92
90
. Executes ( ( ) =>
93
91
{
94
92
EnsureCleanDirectory ( ArtifactsDirectory ) ;
93
+ Logger . Normal ( $ "Cleaned { ArtifactsDirectory } ") ;
95
94
} ) ;
96
95
97
96
Target Restore => _ => _
@@ -173,6 +172,8 @@ class Build : NukeBuild
173
172
Logger . Info ( $ "We are on branch { ModuleBranch } ") ;
174
173
if ( ModuleBranch == "main" || ModuleBranch . StartsWith ( "release" ) )
175
174
{
175
+ Logger . Normal ( "GithubToken is " + ( string . IsNullOrWhiteSpace ( GithubToken ) ? "empty" : "present" ) ) ;
176
+ Logger . Normal ( $ "GitRepository is: { Helpers . Dump ( GitRepository ) } ") ;
176
177
owner = GitRepository . Identifier . Split ( '/' ) [ 0 ] ;
177
178
name = GitRepository . Identifier . Split ( '/' ) [ 1 ] ;
178
179
gitHubClient = new GitHubClient ( new ProductHeaderValue ( "Nuke" ) ) ;
@@ -198,6 +199,7 @@ class Build : NukeBuild
198
199
TargetCommitish = GitVersion . Sha ,
199
200
Prerelease = ModuleBranch . StartsWith ( "release" )
200
201
} ;
202
+ Logger . Normal ( $ "newRelease is : { Helpers . Dump ( newRelease ) } ") ;
201
203
release = gitHubClient . Repository . Release . Create ( owner , name , newRelease ) . Result ;
202
204
Logger . Info ( $ "{ release . Name } released !") ;
203
205
0 commit comments