diff --git a/Chocolatey.Cake.Recipe/Content/build.cake b/Chocolatey.Cake.Recipe/Content/build.cake index aaa3b7e..d09088b 100644 --- a/Chocolatey.Cake.Recipe/Content/build.cake +++ b/Chocolatey.Cake.Recipe/Content/build.cake @@ -168,12 +168,12 @@ BuildParameters.Tasks.BuildTask = Task("Build") XBuild(BuildParameters.SolutionFilePath, xbuildSettings); } + CopyBuildOutput(); + if (FileExists(BuildParameters.Paths.Files.BuildLogFilePath)) { BuildParameters.BuildProvider.UploadArtifact(BuildParameters.Paths.Files.BuildLogFilePath); } - - CopyBuildOutput(); })); BuildParameters.Tasks.DotNetBuildTask = Task("DotNetBuild")