-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
17 lines (12 loc) · 728 Bytes
/
build.ps1
File metadata and controls
17 lines (12 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$folder = "published"
Remove-Item $folder -Recurse -ErrorAction Ignore
$newFolder = New-Item -ItemType directory -Path $folder
# take care of the .net stuff
dotnet build -c Release src > ($folder + "/BuildResults.log")
dotnet publish --no-build -c Release src/WorkSplitCalculator/Web -o ($folder + "/WorkSplitCalculator/Web") > ($folder + "/PublishResults.log")
dotnet publish --no-build -c Release src/WorkSplitCalculator/Client -o ($folder + "/WorkSplitCalculator/Client") > ($folder + "/PublishResults.log")
# static website
Copy-item -Force -Recurse src/LandingWebsite -Destination $($folder + "/LandingWebsite")
dotnet run -p src/CloudConfiguration