From 3ee4fafaed46bd13dbc73ed680c524d7b38ff0b7 Mon Sep 17 00:00:00 2001 From: Yevhen Bobrov Date: Mon, 6 Apr 2020 14:47:09 +0300 Subject: [PATCH] Update to first beta --- .config/dotnet-tools.json | 4 ++-- Nake.csx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 0621468..1a4d2b1 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,9 +3,9 @@ "isRoot": true, "tools": { "nake": { - "version": "3.0.0-alpha-9", + "version": "3.0.0-beta-01", "commands": [ - "nake" + "Nake" ] } } diff --git a/Nake.csx b/Nake.csx index 56e7215..b5c0ef9 100644 --- a/Nake.csx +++ b/Nake.csx @@ -1,7 +1,7 @@ #r "System.Net.WebClient" -#r "nuget: Nake.Meta, 3.0.0-alpha-9" -#r "nuget: Nake.Utility, 3.0.0-alpha-9" +#r "nuget: Nake.Meta, 3.0.0-beta-01" +#r "nuget: Nake.Utility, 3.0.0-beta-01" using System.IO; using System.Text; @@ -25,15 +25,15 @@ var Version = "3.0.0-dev"; MakeDir(ArtifactsPath); /// Restores packages and builds sources in Debug mode -[Step] async Task Default() => await Build(); +[Nake] async Task Default() => await Build(); /// Builds sources using specified configuration -[Step] async Task Build(string config = "Debug", bool verbose = false) => await +[Nake] async Task Build(string config = "Debug", bool verbose = false) => await $@"dotnet build {RootPath}/Nake.sln \ /p:Configuration={config} {(verbose ? "/v:d" : "")}"; /// Runs unit tests -[Step] async Task Test(bool slow = false) +[Nake] async Task Test(bool slow = false) { await Build("Debug"); @@ -61,19 +61,19 @@ MakeDir(ArtifactsPath); } /// Builds official NuGet packages -[Step] async Task Pack(bool skipFullCheck = false) +[Nake] async Task Pack(bool skipFullCheck = false) { await Test(!skipFullCheck); await $"dotnet pack -c Release -p:PackageVersion={Version} Nake.sln"; } /// Publishes package to NuGet gallery -[Step] async Task Publish() => await +[Nake] async Task Publish() => await $@"dotnet nuget push {ReleasePackagesPath}/**/*.{Version}.nupkg \ -k %NuGetApiKey% -s https://nuget.org/ -ss https://nuget.smbsrc.net --skip-duplicate"; /// Unlists nake packages from Nuget.org -[Step] async Task Unlist() +[Nake] async Task Unlist() { await Delete("Nake"); await Delete("Nake.Utility");