Spotify.NET/publish.sh

22 lines
587 B
Bash
Raw Normal View History

2020-06-04 19:40:34 +01:00
#!/bin/bash
set -e
echo "Publishing..."
2020-06-04 19:40:34 +01:00
cd ./SpotifyAPI.Web
dotnet pack -c Release SpotifyAPI.Web.csproj -p:PackageVersion="$RELEASE_VERSION"
nuget push "./bin/Release/SpotifyAPI.Web.$RELEASE_VERSION.nupkg"\
-ApiKey "$NUGET_TOKEN"\
-NonInteractive\
-Source https://www.nuget.org/api/v2/package
2020-06-04 19:40:34 +01:00
cd ../SpotifyAPI.Web.Auth
dotnet pack -c Release SpotifyAPI.Web.Auth.csproj -p:PackageVersion="$RELEASE_VERSION"
nuget push "./bin/Release/SpotifyAPI.Web.Auth.$RELEASE_VERSION.nupkg"\
-ApiKey "$NUGET_TOKEN"\
-NonInteractive\
-Source https://www.nuget.org/api/v2/package
2020-06-04 19:40:34 +01:00
cd ..