Harden managed server deployment and authentication
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
param(
|
||||
[string]$Runtime = 'win-x64',
|
||||
[string]$Output = "$PSScriptRoot/artifacts/server/$Runtime"
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
dotnet publish "$PSScriptRoot/src/VoiceCat.Server/VoiceCat.Server.csproj" -c Release -r $Runtime --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=false -p:RestoreLockedMode=true "-p:NuGetLockFilePath=packages.publish.$Runtime.lock.json" -o $Output
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Managed server publish failed.' }
|
||||
Reference in New Issue
Block a user