parent
f70c058dec
commit
ac6504c2ae
@ -1,27 +0,0 @@
|
|||||||
name: test_CICD # 工作流的名称
|
|
||||||
|
|
||||||
# 当有代码推送到仓库的 main 分支时,这个 Actions 工作流会被触发并执行
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: test
|
|
||||||
steps:
|
|
||||||
- name: Set PowerShell Execution Policy
|
|
||||||
shell: pwsh
|
|
||||||
run: Set-ExecutionPolicy Bypass -Scope Process -Force
|
|
||||||
|
|
||||||
- name: Run CMake build and install
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
echo "test_start"
|
|
||||||
sleep 20
|
|
||||||
echo "test_end"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
33
.gitea/workflows/develop.yml
Normal file
33
.gitea/workflows/develop.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: "frontend_runner"
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
echo "Git clone_start"
|
||||||
|
|
||||||
|
# 設定變數
|
||||||
|
$projectPath = "D:\Code\Project\TCM"
|
||||||
|
$frontendPath = "D:\Code\Project\TCM\Frontend"
|
||||||
|
$apiPath = "D:\Code\Server\TCM\View"
|
||||||
|
|
||||||
|
cd D:\Code\Project\TCM
|
||||||
|
if (Test-Path "Frontend") { Remove-Item -Recurse -Force "Frontend" } # 刪除原資料
|
||||||
|
if (-not (Test-Path "Frontend")) {New-Item -Path "Frontend" -ItemType Directory -Force} # 建立資料夾
|
||||||
|
echo " Cloneing ..."
|
||||||
|
git clone -b develop http://leovip125.ddns.net:8418/TCM/Frontend.git
|
||||||
|
echo "Clone End"
|
||||||
|
|
||||||
|
# Node.js 發布
|
||||||
|
echo "發布 start"
|
||||||
|
|
||||||
|
echo "發布 end"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user