# GitHub 发布 > ❄️ **已冻结(2026-06-19)**:全面统一自建 Gitea,弃用 GitHub。 > 🗑️ **已退役(2026-07-02)**:发布链路代码全部移除(PublishModal / ImportRepoModal / github_create_repo / git_push_to_github),详见 github-decommission 模块。本文件仅作历史记录。 在炼境内通过 GitHub OAuth 直接将本地项目推送到远程仓库,支持新建仓库或关联已有仓库,完成发布后自动回填 remote URL。 ## 决策记录 - 依赖 github-auth 模块提供的 access token,不在本模块持久化凭证 - 发布操作调用 GitHub REST API 创建仓库,然后通过 git2 库执行 push ## 任务卡 ### ✅ GitHub 仓库创建与推送 - status: done - complexity: M - files: src-tauri/src/commands/github.rs, src/components/dashboard/ProjectCard.tsx - depends: github-auth - acceptance: 未关联远程的项目可在看板卡片中一键发布到 GitHub;发布成功后 remote_url 写入 DB,卡片显示 GitHub 链接