From 30e44851427a84969c5749895d935a6226e65c10 Mon Sep 17 00:00:00 2001 From: ogt Date: Sun, 19 Apr 2026 01:48:40 +0800 Subject: [PATCH] fix: add rsync+ssh install step in CD pipeline --- .gitea/workflows/cd.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index ee3fafe..634651a 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -95,6 +95,11 @@ jobs: -H "Content-Type: application/json" \ -d "$(jq -n --arg c "${{ secrets.TELEGRAM_CHAT_ID }}" --arg t "$MSG" '{chat_id:$c,text:$t,parse_mode:"HTML"}')" + # ── 安裝部署工具 ──────────────────────────────────────────────────── + - name: 安裝 rsync / ssh + run: | + apt-get update -qq && apt-get install -y -qq rsync openssh-client + # ── 模式 A:僅同步 Python 檔案(最常見,~10s) ──────────────────────── - name: 同步 Python 檔案至 188 if: steps.deploy_type.outputs.type == 'sync'