Skip to content

✨ Auto-release on version.go change instead of tag push#4

Merged
x5iu merged 1 commit intomainfrom
feat/auto-release
Dec 14, 2025
Merged

✨ Auto-release on version.go change instead of tag push#4
x5iu merged 1 commit intomainfrom
feat/auto-release

Conversation

@x5iu
Copy link
Copy Markdown
Owner

@x5iu x5iu commented Dec 14, 2025

Summary

  • 将 release workflow 的触发条件从 tag push 改为 main 分支的 runtime/version.go 文件变更
  • 自动比较源码中的版本号与最新 git tag
  • 如果版本号不一致,自动创建并推送新 tag,然后发布 release
  • 如果版本号一致,跳过所有步骤

Test plan

  • 修改 runtime/version.go 中的版本号并推送到 main
  • 验证 workflow 自动创建新 tag 并发布 release
  • 验证版本号相同时不会重复发布

🤖 Generated with Claude Code

- Trigger workflow on main branch push when runtime/version.go changes
- Compare version in source file with latest git tag
- Automatically create and push new tag if version differs
- Skip all steps if version matches latest tag

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@x5iu x5iu force-pushed the feat/auto-release branch from 60d1959 to 824d055 Compare December 14, 2025 09:46
@x5iu x5iu merged commit 985d0a6 into main Dec 14, 2025
9 checks passed
@x5iu x5iu deleted the feat/auto-release branch December 14, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants