Skip to content

Commit

Permalink
Update to first beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhen committed Apr 6, 2020
1 parent 3ab0939 commit 3ee4faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"isRoot": true,
"tools": {
"nake": {
"version": "3.0.0-alpha-9",
"version": "3.0.0-beta-01",
"commands": [
"nake"
"Nake"
]
}
}
Expand Down
16 changes: 8 additions & 8 deletions Nake.csx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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");

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 3ee4faf

Please sign in to comment.