Added publish script for nuget

This commit is contained in:
Jonas Dellinger 2017-07-16 22:47:06 +02:00
parent c74b210120
commit c020172469
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>SpotifyAPI-NET</id>
<version>1.0.0</version>
<title>SpotifyAPI-NET</title>
<authors>JohnnyCrazy</authors>
<owners>JohnnyCrazy</owners>
<licenseUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/JohnnyCrazy/SpotifyAPI-NET/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An API for the Spotify-Client and Spotify's Web API, written in .NET
For more infos, visit https://github.com/JohnnyCrazy/SpotifyAPI-NET</description>
<language />
<tags>spotify api music .net c# spotify-client</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="8.0.2" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\SpotifyAPI.dll" target="lib\SpotifyAPI.dll" />
<file src="bin\Release\SpotifyAPI.XML" target="lib\SpotifyAPI.XML" />
</files>
</package>

11
SpotifyAPI/publish.cmd Normal file
View File

@ -0,0 +1,11 @@
if "%APPVEYOR_REPO_TAG %" == "true" (
echo Publishing...
cd ./SpotifyAPI
nuget pack -Version %APPVEYOR_REPO_TAG_NAME%
cd ../
) else (
echo Skipping Publishing
)