Update MyGet package publishing

This commit is contained in:
Alex Barney 2020-06-04 11:17:30 -07:00
parent d5362790b8
commit 3de2a4b90b
2 changed files with 3 additions and 6 deletions

View File

@ -291,17 +291,13 @@ namespace LibHacBuild
.Executes(() =>
{
AbsolutePath nupkgFile = ArtifactsDirectory.GlobFiles("*.nupkg").Single();
AbsolutePath snupkgFile = ArtifactsDirectory.GlobFiles("*.snupkg").Single();
string apiKey = EnvironmentInfo.GetVariable<string>("myget_api_key");
DotNetNuGetPushSettings settings = new DotNetNuGetPushSettings()
.SetApiKey(apiKey)
.SetSymbolApiKey(apiKey)
.SetSource("https://www.myget.org/F/libhac/api/v2/package")
.SetSymbolSource("https://www.myget.org/F/libhac/symbols/api/v2/package");
.SetSource("https://www.myget.org/F/libhac/api/v3/index.json");
DotNetNuGetPush(settings.SetTargetPath(nupkgFile));
DotNetNuGetPush(settings.SetTargetPath(snupkgFile));
});
Target Sign => _ => _

View File

@ -10,7 +10,7 @@
<PropertyGroup>
<Authors>Alex Barney</Authors>
<Copyright>Copyright © 2018 Alex Barney</Copyright>
<Copyright>Copyright © 2018-2020 Alex Barney</Copyright>
<Description>A library for reading content formats used by the Nintendo Switch.</Description>
<PackageTags>Nintendo;Switch;nca;xci;savefile</PackageTags>
<PackageProjectUrl>https://github.com/Thealexbarney/LibHac</PackageProjectUrl>
@ -19,6 +19,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- When doing a release build with a Git directory, SourceLink will set the SourceRoot needed for DeterministicSourcePaths -->