forked from simpleinjector/SimpleInjector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish2nuget.bat
44 lines (37 loc) · 2.16 KB
/
publish2nuget.bat
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
REM This bat file allows publishing packages to Nuget.
REM Usage:
REM publish2nuget.bat [version] [NuGet API key]
IF "%1"=="" (
ECHO Please supply the version number and API key that should be published to nuget. Example: "%0 1.6.2-beta4 00000000-0000-0000-0000-000000000000"
GOTO :EOF
)
IF "%2"=="" (
ECHO Please supply the version number and API key that should be published to nuget. Example: "%0 1.6.2-beta4 00000000-0000-0000-0000-000000000000"
GOTO :EOF
)
set version=%1
set superSecretApiKey=%2
set packageDirectory=Releases\v%version%\.NET
set options=-Verbosity detailed
set nugetexe=..\nuget.exe
IF NOT EXIST %packageDirectory% (
ECHO The directory "%packageDirectory%" could not be found.
GOTO :EOF
)
IF NOT EXIST %nugetexe% (
echo %nugetexe% not found. Please download nuget.exe from https://www.nuget.org/nuget.exe.
GOTO :EOF
)
%nugetexe% push %packageDirectory%\SimpleInjector.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Extensions.ExecutionContextScoping.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Extensions.LifetimeScoping.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.Wcf.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.Wcf.QuickStart.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.Web.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.Web.Mvc.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.MVC3.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.WebApi.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Integration.WebApi.WebHost.QuickStart.%version%.nupkg %superSecretApiKey% %options%
%nugetexe% push %packageDirectory%\SimpleInjector.Packaging.%version%.nupkg %superSecretApiKey% %options%
echo Done!