mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Setup publish script
This commit is contained in:
parent
f04f175775
commit
14dd959354
19
publish.cmd
19
publish.cmd
@ -1,19 +0,0 @@
|
|||||||
if "%APPVEYOR_REPO_TAG%" == "true" (
|
|
||||||
|
|
||||||
echo Publishing...
|
|
||||||
|
|
||||||
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
|
|
||||||
nuget push ./bin/Release/SpotifyAPI.Web.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub
|
|
||||||
|
|
||||||
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
|
|
||||||
nuget push ./bin/Release/SpotifyAPI.Web.Auth.%APPVEYOR_REPO_TAG_NAME%.nupkg -NonInteractive -Source GitHub
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
) else (
|
|
||||||
echo Skipping Publishing
|
|
||||||
)
|
|
26
publish.sh
Executable file
26
publish.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -n "$APPVEYOR_REPO_TAG" ]; then
|
||||||
|
echo "Publishing..."
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user