From e5092ba779e1d416753769706cd5102a863c008d Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Tue, 15 Oct 2019 21:41:41 +0200 Subject: [PATCH] Publish to GitHub Package Registry as well --- publish.cmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/publish.cmd b/publish.cmd index d3b73ee6..204ece13 100644 --- a/publish.cmd +++ b/publish.cmd @@ -1,13 +1,18 @@ if "%APPVEYOR_REPO_TAG%" == "true" ( echo Publishing... + +nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/JohnnyCrazy/index.json" -UserName JohnnyCrazy -Password %GH_TOKEN% + cd ./SpotifyAPI.Web dotnet pack -c Release SpotifyAPI.Web.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME% nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package +nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub cd ../SpotifyAPI.Web.Auth dotnet pack -c Release SpotifyAPI.Web.Auth.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME% nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package +nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub cd ..