From 05d1f4de027ea247f9d678a40aa53a388369d5cf Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Fri, 24 Aug 2018 14:51:48 +0200 Subject: [PATCH] Updated nuspecs and publish script --- SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj | 4 ++++ SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec | 3 +++ SpotifyAPI.Web/SpotifyAPI.Web.csproj | 4 ++++ SpotifyAPI.Web/SpotifyAPI.Web.nuspec | 4 +++- publish.cmd | 15 +++++++++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 publish.cmd diff --git a/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj b/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj index 0556ddd4..7588a95b 100644 --- a/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj +++ b/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj @@ -8,6 +8,10 @@ bin\Debug\netstandard2.0\SpotifyAPI.Web.Auth.xml + + bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.xml + + diff --git a/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec b/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec index d47b046c..f13b2d9f 100644 --- a/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec +++ b/SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec @@ -19,8 +19,11 @@ spotify api music .net c# spotify-client + + + diff --git a/SpotifyAPI.Web/SpotifyAPI.Web.csproj b/SpotifyAPI.Web/SpotifyAPI.Web.csproj index dd58774c..abcea8d9 100644 --- a/SpotifyAPI.Web/SpotifyAPI.Web.csproj +++ b/SpotifyAPI.Web/SpotifyAPI.Web.csproj @@ -8,6 +8,10 @@ bin\Debug\netstandard2.0\SpotifyAPI.Web.xml + + bin\Release\netstandard2.0\SpotifyAPI.Web.xml + + diff --git a/SpotifyAPI.Web/SpotifyAPI.Web.nuspec b/SpotifyAPI.Web/SpotifyAPI.Web.nuspec index 8d99888e..a3b05d95 100644 --- a/SpotifyAPI.Web/SpotifyAPI.Web.nuspec +++ b/SpotifyAPI.Web/SpotifyAPI.Web.nuspec @@ -22,5 +22,7 @@ + + - \ No newline at end of file + diff --git a/publish.cmd b/publish.cmd new file mode 100644 index 00000000..3d8fbf7b --- /dev/null +++ b/publish.cmd @@ -0,0 +1,15 @@ +if "%APPVEYOR_REPO_TAG%" == "true" ( + +echo Publishing... + +cd ./SpotifyAPI.Web +nuget pack ./SpotifyAPI.Web.nuspec -Version %APPVEYOR_REPO_TAG_NAME% +nuget push ./SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package + +cd ../SpotifyAPI.Web.Auth +nuget pack ./SpotifyAPI.Web.Auth.nuspec -Version %APPVEYOR_REPO_TAG_NAME% +nuget push ./SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package + +) else ( + echo Skipping Publishing +)