-
Notifications
You must be signed in to change notification settings - Fork 0
/
UploadNuget2NugetOrg.bat
30 lines (23 loc) · 1.07 KB
/
UploadNuget2NugetOrg.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
REM USE IT ALWAYS IN DEBUG MODE FOR DEVELOPMENT BRANCH.
REM USE IT ALWAYS IN RELEASE MODE FOR MASTER BRANCH.
REM ENVIRONMENT=Debug;ENVIRONMENT=Release
SET ENVIRONMENT=Release
SET SolutionDir=D:\Desarrollo\TFS-Git\Personal\!ProyectosGlobales\AssemblyInfoUtil\
SET NugetProject=GMS.Util.AssemblyInfoUtil.NuGet1\
SET NugetProjectPath=%SolutionDir%%NugetProject%
REM "bin\Debug";bin\Release
SET OutDir=""
IF Debug==%ENVIRONMENT% (
SET OutDir=bin\Debug\
) ELSE (
SET OutDir=bin\Release\
)
SET TargetPath=%NugetProjectPath%%OutDir%
xcopy "%TargetPath%GMS.Utils.AssemblyInfoUtil.exe" "%TargetPath%sln\" -y
del "%TargetPath%*.pdb"
del "%TargetPath%*.nupkg"
"%SolutionDir%.NuGetPack\NuGetPack.exe" "%NugetProjectPath%" "%TargetPath%" %ENVIRONMENT%
REM $(SolutionDir).NuGetPack\NuGet push -SkipDuplicate $(TargetDir)*.nupkg TmJgEsOE1DKWWzMA2u3R -Source http://192.168.1.6:90/NuGetServer/nuget
REM .\.NuGetPack\NuGet push -SkipDuplicate .\GMS.Util.AssemblyInfoUtil.NuGet1\bin\Debug\*.nupkg oy2jagm6jccdxj3u5heqr37rqbqbvzru7lgmrqtvgnnj5q -Source https://api.nuget.org/v3/index.json
timeout 3
pause