-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
42 lines (31 loc) · 909 Bytes
/
Copy pathdeploy.bat
File metadata and controls
42 lines (31 loc) · 909 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
39
40
41
42
@echo off
if "%3" == "minimal" (
echo "Minimal deployment is enabled"
) else (
dotnet restore
dotent build -c Release --no-restore
dotnet pack -c Release --no-build --output ./nupkgs
)
set libs=KarcagS.Shared KarcagS.API KarcagS.Http KarcagS.API.Auth KarcagS.API.Data KarcagS.API.Export KarcagS.API.Http KarcagS.API.Mail KarcagS.API.Mongo KarcagS.API.Repository KarcagS.API.Shared KarcagS.API.Table KarcagS.Client.Common KarcagS.Blazor.Common
if "%1" == "" (
echo "ERROR: Missing version number"
goto end
)
if "%2" == "" (
echo "ERROR: Missing token"
goto end
)
set ver=%1
set token=%2
cd ./nupkgs
(for %%a in (%libs%) do (
echo.
echo --------%%a--------
echo.
dotnet nuget push .\%%a.%ver%.nupkg --api-key %token% --source https://api.nuget.org/v3/index.json --skip-duplicate
echo.
echo --------%%a--------
echo.
))
cd ..
:end