-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.ps1
35 lines (29 loc) · 794 Bytes
/
build.ps1
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
New-Item -ItemType Directory -Force -Path ./nuget
$cd = Get-Location
$projects = (
'IdentityServer4.OpenAdmin.Core',
'IdentityServer4.OpenAdmin.API',
'IdentityServer4.OpenAdmin.UI',
'IdentityServer4.OpenAdmin.AspNetIdentity',
'IdentityServer4.OpenAdmin.EntityFramework',
'IdentityServer4.OpenAdmin.InMemory'
)
ForEach ($project in $projects)
{
""
"/---------------------------------------------------"
"| $project "
"\---------------------------------------------------"
""
$path = ".\src\$project"
set-location $path
$ErrorActionPreference = "Stop";
dotnet build -c Release -- $args
dotnet pack -c Release -o './artifacts' --no-build
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path $path\artifacts\*.nupkg -Destination .\nuget
}