Skip to content

Commit

Permalink
Fix symbols packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhen committed Jan 22, 2021
1 parent 77af7a5 commit f158a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nake.csx
Expand Up @@ -65,15 +65,15 @@ var Version = "2.0.0-dev";
{
Test(!skipFullCheck);
Build("Release");
Exec("dotnet", $"pack --no-build -c Release -p:PackageVersion={Version} {CoreProject}.sln");
Exec("dotnet", $"pack --no-build -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion={Version} {CoreProject}.sln");
}

/// Publishes package to NuGet gallery
[Step] void Publish() => Push(CoreProject);

void Push(string package) => Exec("dotnet",
@"nuget push {ReleasePackagesPath}\{package}.{Version}.nupkg " +
"-k %NuGetApiKey% -s https://nuget.org/ -ss https://nuget.smbsrc.net");
"-k %NuGetApiKey% -s https://nuget.org/ --skip-duplicate");

/// Installs binary dependencies
[Task] void Restore() => Exec("dotnet", "restore {CoreProject}.sln");

0 comments on commit f158a13

Please sign in to comment.