From 0cc1040700b31376ddc493d7a953eaa31fac3e72 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 27 Oct 2024 00:05:16 +0200 Subject: [PATCH] made all tasks explicitly depend on prepare --- build.cake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.cake b/build.cake index 8ffad12..7ec17b8 100644 --- a/build.cake +++ b/build.cake @@ -76,14 +76,14 @@ Task("Push").WithCriteria(gitRef == "refs/heads/main" || gitRef.StartsWith("refs DotNetNuGetPush("**/MLEM*.nupkg", settings); }); -Task("Document").Does(() => { +Task("Document").IsDependentOn("Prepare").Does(() => { DocFxMetadata("Docs/docfx.json"); DocFxBuild("Docs/docfx.json"); if (serve) DocFxServe("Docs/_site"); }); -Task("PublishWeb").Does(() => { +Task("PublishWeb").IsDependentOn("Prepare").Does(() => { DotNetPublish("Demos.Web/Demos.Web.KNI.csproj", new DotNetPublishSettings { Configuration = config, ArgumentCustomization = args => args.Append($"/p:Version={version}")