-
Notifications
You must be signed in to change notification settings - Fork 8
/
Publish.bat
45 lines (35 loc) · 1.1 KB
/
Publish.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
45
@echo off
echo =======================================================================
echo Bing.Utils
echo =======================================================================
::create nuget_packages
if not exist nuget_packages (
md nuget_packages
echo Create nuget_packages folder.
)
::clear nuget_packages
for /R "nuget_packages" %%s in (*) do (
del %%s
)
echo Cleaned up all nuget packages.
echo.
::start to package all projects
::Utils
dotnet pack src/Bing.Utils -c Release -o nuget_packages
dotnet pack src/Bing.Utils.DateTime -c Release -o nuget_packages
dotnet pack src/Bing.Utils.Drawing -c Release -o nuget_packages
dotnet pack src/Bing.Utils.Http -c Release -o nuget_packages
dotnet pack src/Bing.Utils.Collections -c Release -o nuget_packages
dotnet pack src/Bing.Utils.Reflection -c Release -o nuget_packages
for /R "nuget_packages" %%s in (*symbols.nupkg) do (
del %%s
)
echo.
echo.
set /p key=input key:
set source=https://api.nuget.org/v3/index.json
for /R "nuget_packages" %%s in (*.nupkg) do (
call dotnet nuget push %%s -k %key% -s %source% --skip-duplicate
echo.
)
pause