Skip to content

Commit

Permalink
Publish to GitHub Package Registry as well
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyCrazy authored Oct 15, 2019
1 parent 7d04f58 commit e5092ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions publish.cmd
Original file line number Diff line number Diff line change
@@ -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 ..

Expand Down

0 comments on commit e5092ba

Please sign in to comment.