8000 feat: separate homebrew update to independent workflow by imhuso · Pull Request #11 · imhuso/cunzhi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: separate homebrew update to independent workflow #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 17, 2025
Merged

feat: separate homebrew update to independent workflow #11

merged 2 commits into from
Jun 17, 2025

Conversation

imhuso
Copy link
Owner
@imhuso imhuso commented Jun 17, 2025

🚀 改进 Homebrew 工作流程

📋 主要修改:

  1. 新增独立的 Homebrew 更新工作流 (.github/workflows/update-homebrew.yml)

    • 专门处理 Homebrew Formula 更新
    • 支持自动触发(release 发布时)和手动触发
    • 增加 release assets 验证和错误处理
  2. 简化主要发布流程 (.github/workflows/release.yml)

    • 移除复杂的 Homebrew 更新逻辑
    • 统一使用 TAG_NAME 变量格式
    • 简化为触发独立的 update-homebrew workflow
  3. 修复版本号不匹配问题

    • 解决 Formula 中版本号与 release tag 不匹配
    • 统一文件名格式:cunzhi-cli-v0.2.4-macos-x86_64.tar.gz

🎯 解决的问题:

  • brew install cunzhi 出现 404 错误
  • ❌ 版本号格式不一致 (v0.2.0 vs v0.2.4)
  • ❌ 复杂的工作流程难以维护

✅ 改进效果:

  • 🚀 简化流程,易于维护
  • 🔧 增加错误处理和验证
  • 🎯 统一版本号格式
  • 📦 提高发布流程可靠性

🧪 测试计划:

合并后发布新版本测试完整流程:

  1. 构建和发布 release assets
  2. 自动触发 Homebrew Formula 更新
  3. 验证 brew install cunzhi 正常工作

imhuso added 2 commits June 17, 2025 10:51
- Add workflow_dispatch trigger to auto-release.yml
- Split into two stages: prepare-release (PR merge) and execute-release (manual)
- Display release information with suggested version and next steps
- Allow manual selection of version type (patch/minor/major/custom)
- Remove dependency on GitHub Environment for simpler setup
- Add comprehensive documentation for the new workflow
- Create dedicated update-homebrew.yml workflow for Formula updates
- Simplify release.yml by removing complex homebrew logic
- Fix version number consistency issues (404 errors)
- Unify TAG_NAME usage across all workflows
- Add proper error handling and asset verification
- Support both automatic (on release) and manual triggers

Fixes homebrew installation 404 errors and improves workflow maintainability.
@imhuso imhuso added the release Trigger automatic release workflow label Jun 17, 2025
@imhuso imhuso merged commit 2818da9 into main Jun 17, 2025
@imhuso imhuso had a problem deploying to release-approval June 17, 2025 03:41 — with GitHub Actions Failure
@imhuso imhuso deployed to release-approval June 17, 2025 03:52 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Trigger automatic release workflow size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0