.NET 發布
Some checks failed
Backend_develop / build (push) Failing after 10s

This commit is contained in:
威勝 張 2025-02-24 20:42:35 +08:00
parent 1858a7439f
commit 50c4cfd10b

View File

@ -1,6 +1,6 @@
name: Backend_develop # 工作流的名称 name: Backend_develop # 工作流的名称
# 当有代码推送到仓库的 main 分支时,这个 Actions 工作流会被触发并执行 # 当有代码推送到仓库的 develop 分支时,这个 Actions 工作流会被触发并执行
on: on:
push: push:
branches: branches:
@ -20,3 +20,11 @@ jobs:
echo " Cloneing ..." echo " Cloneing ..."
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 發布
dotnet restore
dotnet build
cd D:\Code\Server\TCM
if (Test-Path "API") { Remove-Item -Recurse -Force "API" } # 刪除原資料
if (-not (Test-Path "API")) {New-Item -Path "API" -ItemType Directory -Force} # 建立資料夾
dotnet publish -c Release -o D:\Code\Server\TCM\API