Skip to content

Commit e5092ba

Browse files
authored
Publish to GitHub Package Registry as well
1 parent 7d04f58 commit e5092ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

publish.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
if "%APPVEYOR_REPO_TAG%" == "true" (
22

33
echo Publishing...
4+
5+
nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/JohnnyCrazy/index.json" -UserName JohnnyCrazy -Password %GH_TOKEN%
6+
47
cd ./SpotifyAPI.Web
58
dotnet pack -c Release SpotifyAPI.Web.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
69
nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
10+
nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub
711

812
cd ../SpotifyAPI.Web.Auth
913
dotnet pack -c Release SpotifyAPI.Web.Auth.csproj -p:PackageVersion=%APPVEYOR_REPO_TAG_NAME%
1014
nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
15+
nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub
1116

1217
cd ..
1318

0 commit comments

Comments
 (0)