1515[ ShutdownDotNetAfterServerBuild ]
1616partial class Build : NukeBuild , IPublish
1717{
18- public static int Main ( ) => Execute < Build > ( x => ( ( ICompile ) x ) . Compile ) ;
18+ public static int Main ( ) => Execute < Build > ( x => ( ( ICompile ) x ) . Compile ) ;
1919
2020 [ GitRepository ] readonly GitRepository GitRepository ;
2121
@@ -33,10 +33,10 @@ partial class Build : NukeBuild, IPublish
3333 string PublicNuGetSource => "https://api.nuget.org/v3/index.json" ;
3434 string FeedzNuGetSource => "https://f.feedz.io/acornima/acornima/nuget/index.json" ;
3535
36- [ Parameter ] [ Secret ] readonly string PublicNuGetApiKey ;
37- [ Parameter ] [ Secret ] readonly string FeedzNuGetApiKey ;
36+ [ Parameter ] [ Secret ] readonly string PublicNuGetApiKey ;
37+ [ Parameter ] [ Secret ] readonly string FeedzNuGetApiKey ;
3838
39- bool IsPublicRelease => GitRepository . IsOnMainOrMasterBranch ( ) && IsTaggedBuild ;
39+ bool IsPublicRelease => IsTaggedBuild ;
4040 string IPublish . NuGetSource => IsPublicRelease ? PublicNuGetSource : FeedzNuGetSource ;
4141 string IPublish . NuGetApiKey => IsPublicRelease ? PublicNuGetApiKey : FeedzNuGetApiKey ;
4242
@@ -59,23 +59,22 @@ protected override void OnBuildInitialized()
5959 }
6060
6161 Log . Information ( "BUILD SETUP" ) ;
62- Log . Information ( "Configuration:\t {Configuration}" , ( ( IHazConfiguration ) this ) . Configuration ) ;
62+ Log . Information ( "Configuration:\t {Configuration}" , ( ( IHazConfiguration ) this ) . Configuration ) ;
6363 Log . Information ( "Version suffix:\t {VersionSuffix}" , VersionSuffix ) ;
6464 Log . Information ( "Version:\t \t {Version}" , Version ) ;
6565 Log . Information ( "Tagged build:\t {IsTaggedBuild}" , IsTaggedBuild ) ;
6666 }
6767
68- Target Clean => _ => _
68+ public Target Clean => _ => _
6969 . Before < IRestore > ( x => x . Restore )
7070 . Executes ( ( ) =>
7171 {
7272 SourceDirectory . GlobDirectories ( "**/bin" , "**/obj" ) . ForEach ( x => x . DeleteDirectory ( ) ) ;
7373 TestDirectory . GlobDirectories ( "**/bin" , "**/obj" ) . ForEach ( x => x . DeleteDirectory ( ) ) ;
74- ( ( IHazArtifacts ) this ) . ArtifactsDirectory . CreateOrCleanDirectory ( ) ;
74+ ( ( IHazArtifacts ) this ) . ArtifactsDirectory . CreateOrCleanDirectory ( ) ;
7575 } ) ;
7676
77- public IEnumerable < Project > TestProjects => ( ( IHazSolution ) this ) . Solution . AllProjects . Where ( x => x . Name . Contains ( "Tests" ) ) ;
78-
77+ public IEnumerable < Project > TestProjects => ( ( IHazSolution ) this ) . Solution . AllProjects . Where ( x => x . Name . Contains ( "Tests" ) ) ;
7978
8079 public Configure < DotNetBuildSettings > CompileSettings => _ => _
8180 . SetVersion ( Version )
0 commit comments