Fix missing wwwroot: remove linux-x64 RID, explicitly xcopy wwwroot after publish
This commit is contained in:
Vendored
+2
-2
@@ -35,8 +35,8 @@ pipeline {
|
||||
|
||||
stage('Publish') {
|
||||
steps {
|
||||
bat 'dotnet publish src\\PowderCoating.Web\\PowderCoating.Web.csproj -c Release -r linux-x64 --self-contained false -o publish'
|
||||
bat 'dir publish\\wwwroot /s /b 2>nul | findstr /i "css\\|site.css\\|manifest.json\\|tag-input" || echo [WARN] wwwroot appears empty or missing'
|
||||
bat 'dotnet publish src\\PowderCoating.Web\\PowderCoating.Web.csproj -c Release --self-contained false -o publish'
|
||||
bat 'xcopy /E /Y /I src\\PowderCoating.Web\\wwwroot publish\\wwwroot\\'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user