parent
513506fb80
commit
3a642e957b
33
.gitea/workflows/main.yml
Normal file
33
.gitea/workflows/main.yml
Normal file
@ -0,0 +1,33 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "frontend_runner"
|
||||
steps:
|
||||
- name: main
|
||||
shell: powershell
|
||||
run: |
|
||||
echo "Git clone_start"
|
||||
|
||||
# 設定變數
|
||||
$projectPath = "D:\Code\Project\TCM_main"
|
||||
$frontendPath = "D:\Code\Project\TCM_main\Frontend"
|
||||
$viewPath = "D:\Code\Server\TCM_main\View"
|
||||
|
||||
cd D:\Code\Project\TCM_main
|
||||
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 main 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