Frontend/.gitea/workflows/develop.yml
威勝 張 513506fb80
Some checks are pending
/ build (push) Waiting to run
testCI01
2025-02-25 20:04:20 +08:00

34 lines
851 B
YAML

on:
push:
branches:
- develop
jobs:
build:
runs-on: "frontend_runner"
steps:
- name: develop
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"