Skip to content

Commit 05d1f4d

Browse files
author
Jonas Dellinger
committed
Updated nuspecs and publish script
1 parent 601b74d commit 05d1f4d

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

‎SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.csproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<DocumentationFile>bin\Debug\netstandard2.0\SpotifyAPI.Web.Auth.xml</DocumentationFile>
99
</PropertyGroup>
1010

11+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
12+
<DocumentationFile>bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.xml</DocumentationFile>
13+
</PropertyGroup>
14+
1115
<ItemGroup>
1216
<PackageReference Include="EmbedIO" Version="1.15.0" />
1317
</ItemGroup>

‎SpotifyAPI.Web.Auth/SpotifyAPI.Web.Auth.nuspec‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
<tags>spotify api music .net c# spotify-client</tags>
2020
<dependencies>
2121
<dependency id="Newtonsoft.Json" version="11.0.2" />
22+
<dependency id="SpotifyAPI.Web" version="3.0.0" />
2223
</dependencies>
2324
</metadata>
2425
<files>
26+
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.dll" target="lib\SpotifyAPI.Web.Auth.dll" />
27+
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.Auth.xml" target="lib\SpotifyAPI.Web.Auth.xml" />
2528
</files>
2629
</package>

‎SpotifyAPI.Web/SpotifyAPI.Web.csproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<DocumentationFile>bin\Debug\netstandard2.0\SpotifyAPI.Web.xml</DocumentationFile>
99
</PropertyGroup>
1010

11+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
12+
<DocumentationFile>bin\Release\netstandard2.0\SpotifyAPI.Web.xml</DocumentationFile>
13+
</PropertyGroup>
14+
1115
<ItemGroup>
1216
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1317
</ItemGroup>

‎SpotifyAPI.Web/SpotifyAPI.Web.nuspec‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
</dependencies>
2323
</metadata>
2424
<files>
25+
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.dll" target="lib\SpotifyAPI.Web.dll" />
26+
<file src="bin\Release\netstandard2.0\SpotifyAPI.Web.xml" target="lib\SpotifyAPI.Web.xml" />
2527
</files>
26-
</package>
28+
</package>

‎publish.cmd‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
if "%APPVEYOR_REPO_TAG%" == "true" (
2+
3+
echo Publishing...
4+
5+
cd ./SpotifyAPI.Web
6+
nuget pack ./SpotifyAPI.Web.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
7+
nuget push ./SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
8+
9+
cd ../SpotifyAPI.Web.Auth
10+
nuget pack ./SpotifyAPI.Web.Auth.nuspec -Version %APPVEYOR_REPO_TAG_NAME%
11+
nuget push ./SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -ApiKey %NUGET_TOKEN% -NonInteractive -Source https://www.nuget.org/api/v2/package
12+
13+
) else (
14+
echo Skipping Publishing
15+
)

0 commit comments

Comments
 (0)