26 строки
613 B
Batchfile
26 строки
613 B
Batchfile
setlocal
|
|
|
|
if "%NUGET_KEY%"=="" SET NUGET_KEY=%1
|
|
|
|
echo "key: '%NUGET_KEY%'"
|
|
|
|
set BINROOT=%AGENT_BUILDDIRECTORY%\bin\Release\NuGet
|
|
if not exist %BINROOT% echo "Error: '%BINROOT%' does not exist."&goto :eof
|
|
|
|
set NUGET=%BUILD_SOURCESDIRECTORY%\NuGet.exe
|
|
if not exist %NUGET% echo "Error: '%NUGET%' does not exist."&goto :eof
|
|
|
|
set NUGET_GALLERY=https://www.myget.org/F/applicationinsights/api/v2/package
|
|
|
|
for /r "%BINROOT%" %%P in (*.nupkg) do call :push %%P
|
|
goto :eof
|
|
|
|
:push
|
|
set PACKAGE=%1
|
|
if %PACKAGE:.symbols.=% == %PACKAGE% (
|
|
%NUGET% push "%PACKAGE%" %NUGET_KEY% -source %NUGET_GALLERY%
|
|
)
|
|
goto :eof
|
|
|
|
endlocal
|