-
Notifications
You must be signed in to change notification settings - Fork 17
/
PublishToMyget.bat
38 lines (30 loc) · 1.19 KB
/
PublishToMyget.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
@echo off
if not exist nuget_pub (
md nuget_pub
)
for /R "nuget_pub" %%s in (*) do (
del "%%s"
)
set /p key=input key:
::Paginable
dotnet pack src/DotNetCore.Collections.Paginable -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.Chloe -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.DosOrm -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.EntityFramework -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.EntityFrameworkCore -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.FreeSql -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.FreeSql.DbContext -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.NHibernate -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.SqlKata -c Release -o nuget_pub
dotnet pack src/DotNetCore.Collections.Paginable.SqlSugar -c Release -o nuget_pub
for /R "nuget_pub" %%s in (*symbols.nupkg) do (
del "%%s"
)
echo.
echo.
set source=https://www.myget.org/F/alexinea/api/v2/package
for /R "nuget_pub" %%s in (*.nupkg) do (
call nuget push "%%s" %key% -Source %source%
echo.
)
pause