49 lines
1.5 KiB
Markdown
49 lines
1.5 KiB
Markdown
---
|
||
id: cicd-workflow
|
||
name: CI/CD 工作流
|
||
status: done
|
||
progress: 100
|
||
---
|
||
|
||
## 概述
|
||
CI/CD 配置管理和 GitHub Actions Workflow 文件生成。支持两种部署类型:Web SSH 部署和 Tauri OSS 分发。
|
||
完整部署教程见 docs/tauri-cicd-guide.md。
|
||
|
||
> ✅ **改造完成(2026-07-02)**:generate_workflow 已产出 Gitea Actions 模板(.gitea/workflows/),
|
||
> 炼境自身发版链路经本机 act_runner 实测跑通(v0.1.16 上线 OSS,见 gitea-integration R0 复盘)。
|
||
> 「Actions 运行历史」待 PR/CI 事件联动落地后按 Gitea 事实源重建(concept 卡在 gitea-integration)。
|
||
|
||
## 任务卡
|
||
|
||
### ✅ CI/CD 配置 CRUD
|
||
- status: done
|
||
- files: src-tauri/src/commands/cicd.rs, src/components/dashboard/CicdModal.tsx
|
||
|
||
保存和读取 CI/CD 配置(部署类型、触发分支、构建命令等)。
|
||
|
||
### ✅ Workflow 文件生成
|
||
- status: done
|
||
- files: src-tauri/src/commands/cicd.rs
|
||
|
||
根据配置自动生成 .github/workflows/ 下的 YAML 文件。
|
||
|
||
### ✅ Web SSH 部署模板
|
||
- status: done
|
||
- files: src-tauri/src/commands/cicd.rs
|
||
|
||
生成基于 appleboy/ssh-action 的部署 workflow。
|
||
|
||
### ✅ Tauri OSS 分发模板
|
||
- status: done
|
||
- files: src-tauri/src/commands/cicd.rs
|
||
|
||
生成 Tauri 构建 + 签名 + 阿里云 OSS 上传的 release workflow。
|
||
|
||
### ✅ Actions 运行历史
|
||
- status: done
|
||
- files: src/components/dashboard/CicdModal.tsx
|
||
|
||
查看 GitHub Actions 运行状态,支持手动触发。
|
||
|
||
> ⚠️ 已随 github-decommission(2026-07-02)移除,仅作历史记录;Gitea Actions 接入后按新事实源重建。
|