dev-manager-tauri/.blueprint/modules/cicd-workflow.md

49 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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-decommission2026-07-02移除仅作历史记录Gitea Actions 接入后按新事实源重建。