forked from rebus-org/Rebus.RabbitMq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush.cmd
More file actions
44 lines (30 loc) · 712 Bytes
/
push.cmd
File metadata and controls
44 lines (30 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
set version=%1
if "%version%"=="" (
echo Please remember to specify which version to push as an argument.
goto exit_fail
)
set reporoot=%~dp0\..
set destination=%reporoot%\deploy
if not exist "%destination%" (
echo Could not find %destination%
echo.
echo Did you remember to build the packages before running this script?
)
set nuget=%reporoot%\tools\NuGet\NuGet.exe
if not exist "%nuget%" (
echo Could not find NuGet here:
echo.
echo "%nuget%"
echo.
goto exit_fail
)
"%nuget%" push "%destination%\*.%version%.nupkg" -Source https://nuget.org
if %ERRORLEVEL% neq 0 (
echo NuGet push failed.
goto exit_fail
)
goto exit_success
:exit_fail
exit /b 1
:exit_success