✅ 本地 Git 仓库已初始化
✅ 所有文件已提交到本地仓库
✅ 默认分支已设置为 main
- 登录到 GitHub
- 点击右上角的 "+" 按钮,选择 "New repository"
- 填写仓库信息:
- Repository name:
devflow - Description:
🚀 AI-powered development workflow automation tool - Visibility: Public (推荐开源)
- 不要 勾选 "Initialize this repository with README" (因为我们已经有了)
- Repository name:
在项目目录执行以下命令:
# 进入项目目录
cd /Users/yuchenxu/Documents/编程项目/DevFlow/devflow
# 添加 GitHub 远程仓库 (替换 yourusername 为你的 GitHub 用户名)
git remote add origin https://github.com/yourusername/devflow.git
# 推送代码到 GitHub
git push -u origin main访问 https://github.com/yourusername/devflow 确认:
- ✅ 所有文件都已上传
- ✅ README.md 正确显示
- ✅ 项目描述和标签正确
如果你安装了 GitHub CLI,可以使用更简单的方式:
# 创建仓库并推送 (需要先安装 gh CLI)
gh repo create devflow --public --description "🚀 AI-powered development workflow automation tool" --remote=origin --source=. --push-
Topics (标签): 添加相关标签
rustcliaidevelopment-toolsworkflow-automationopenaiclaudescaffolding
-
About 部分:
- Description:
🚀 AI-powered development workflow automation tool - Website: (如果有的话)
- Topics: 添加上述标签
- Description:
-
Branch Protection:
- 为
main分支启用保护 - 要求 PR review
- 要求状态检查通过
- 为
创建 .github/workflows/ci.yml:
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: \${{ runner.os }}-cargo-registry-\${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test
- name: Build
run: cargo build --release- 在 GitHub 页面点击 "Create a new release"
- 创建新的 tag:
v0.1.0 - Release title:
v0.1.0 - Initial MVP Release - 描述中包含主要功能列表
- 写一篇介绍 DevFlow 的技术博客
- 分享开发过程和技术选择
- 展示使用案例和效果
- 添加 GIF 演示
- 创建详细的使用教程
- 添加 FAQ 部分
- 敏感信息: 确保没有提交 API 密钥或其他敏感信息
- License: 已包含 MIT 许可证
- Contributing: 已包含贡献指南
- Issues Template: 可以考虑添加 issue 模板
- 定期更新依赖
- 响应 issues 和 PR
- 添加新功能和改进
- 发布新版本
准备好发布到 GitHub 了! 🚀
执行上述步骤后,你就能在 GitHub 上看到完整的 DevFlow 项目了。