發布
Some checks failed
Backend_develop / build (push) Failing after 11s

This commit is contained in:
威勝 張 2025-02-24 20:48:20 +08:00
parent 20da8d1acb
commit 1a71ef9f24

View File

@ -21,11 +21,14 @@ jobs:
git clone -b develop http://leovip125.ddns.net:8418/TCM/Backend.git git clone -b develop http://leovip125.ddns.net:8418/TCM/Backend.git
echo "Clone End" echo "Clone End"
# NET 發布 # NET 發布
echo "發布 start"
cd Backend cd Backend
dotnet restore dotnet restore
dotnet build dotnet build
cd D:\Code\Server\TCM cd D:\Code\Server\TCM
if (Test-Path "API") { Remove-Item -Recurse -Force "API" } # 刪除原資料 if (Test-Path "API") { Remove-Item -Recurse -Force "API" } # 刪除原資料
if (-not (Test-Path "API")) {New-Item -Path "API" -ItemType Directory -Force} # 建立資料夾 if (-not (Test-Path "API")) {New-Item -Path "API" -ItemType Directory -Force} # 建立資料夾
cd D:\Code\Project\TCM\Backend
dotnet publish -c Release -o D:\Code\Server\TCM\API dotnet publish -c Release -o D:\Code\Server\TCM\API
echo "發布 end"