Skip to content

Commit

Permalink
Fixed build script
Browse files Browse the repository at this point in the history
ryancheung committed Jun 15, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c6a01a4 commit e1f4c32
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions build.cake
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ Task("Prep")
dnPackSettings.Configuration = configuration;
});

Task("BuildWindows")
Task("Build")
.IsDependentOn("Prep")
.WithCriteria(() => IsRunningOnWindows())
.Does(() =>
@@ -91,18 +91,8 @@ Task("BuildWindows")
PackDotnet("ImeSharp/ImeSharp.csproj");
});

Task("BuildNetStandard")
.IsDependentOn("Prep")
.WithCriteria(() => IsRunningOnWindows())
.Does(() =>
{
DotNetCoreRestore("ImeSharp/ImeSharp.NetStandard.csproj");
PackDotnet("ImeSharp/ImeSharp.NetStandard.csproj");
});

Task("Default")
.IsDependentOn("BuildWindows")
.IsDependentOn("BuildNetStandard");
.IsDependentOn("Build");

Task("Publish")
.IsDependentOn("Default")
@@ -111,10 +101,6 @@ Task("Publish")
var args = $"push -Source \"https://api.nuget.org/v3/index.json\" -ApiKey {apiKey} Artifacts/WinForms/Release/ImeSharp.{version}.nupkg";

RunProcess(NuGetToolPath, args);

args = $"push -Source \"https://api.nuget.org/v3/index.json\" -ApiKey {apiKey} Artifacts/NetStandard/Release/ImeSharp.NetStandard.{version}.nupkg";

RunProcess(NuGetToolPath, args);
});

//////////////////////////////////////////////////////////////////////

0 comments on commit e1f4c32

Please sign in to comment.