This commit is contained in:
parent
1858a7439f
commit
50c4cfd10b
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user