This commit is contained in:
parent
a946293f16
commit
1858a7439f
22
.gitea/workflows/develop.yml
Normal file
22
.gitea/workflows/develop.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Backend_develop # 工作流的名称
|
||||||
|
|
||||||
|
# 当有代码推送到仓库的 main 分支时,这个 Actions 工作流会被触发并执行
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: "backend_runner"
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
echo "Git clone_start"
|
||||||
|
cd D:\Code\Project\TCM
|
||||||
|
if (Test-Path "Backend") { Remove-Item -Recurse -Force "Backend" } # 刪除原資料
|
||||||
|
if (-not (Test-Path "Backend")) {New-Item -Path "Backend" -ItemType Directory -Force} # 建立資料夾
|
||||||
|
echo " Cloneing ..."
|
||||||
|
git clone -b develop http://leovip125.ddns.net:8418/TCM/Backend.git
|
||||||
|
echo "Clone End"
|
Loading…
x
Reference in New Issue
Block a user