-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNuGetPush.cmd
More file actions
38 lines (30 loc) · 898 Bytes
/
NuGetPush.cmd
File metadata and controls
38 lines (30 loc) · 898 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
@echo off
setlocal EnableDelayedExpansion
set _build=
set _version=1.8.1%_build%
set _suffix=
set _token=
IF NOT "%1"=="" (
set _token=%1
)
IF "%_token%"=="" (
echo No API key token was provided on command line.
echo Usage: NuGetPush.cmd token
exit /b 2
)
set PATH=%~dp0.build;%PATH%
set libs=(Core Access Excel MSFormsApi MSProject Outlook PowerPoint Publisher Visio Word)
for %%I in %libs% do (
set library=%%I
set file=NetOfficeFw.!library!.!_version!!_suffix!.nupkg
echo NetOffice.!library!
echo push !file!
REM https://www.myget.org/F/netofficefw-dev/api/v2/package
REM https://www.myget.org/F/netoffice/api/v2/package
REM https://api.nuget.org/v3/index.json
nuget.exe push out\signed\!file! "!_token!" -NonInteractive -ForceEnglishOutput -Source https://api.nuget.org/v3/index.json
if ERRORLEVEL 1 (
echo Failed to push to nuget.org feed.
)
echo.
)