2020-06-04 19:40:34 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-11-14 08:40:07 +00:00
|
|
|
echo "Publishing..."
|
2020-06-04 19:40:34 +01:00
|
|
|
|
2020-11-14 08:40:07 +00:00
|
|
|
sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
|
|
|
alias nuget="mono /usr/local/bin/nuget.exe"
|
2020-06-04 19:40:34 +01:00
|
|
|
|
2020-11-14 08:40:07 +00:00
|
|
|
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
|
2020-06-04 19:40:34 +01:00
|
|
|
|
2020-11-14 08:40:07 +00:00
|
|
|
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
|
2020-06-04 19:40:34 +01:00
|
|
|
|
2020-11-14 08:40:07 +00:00
|
|
|
cd ..
|