mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 08:05:12 +00:00
The sync-version-file job committed the VERSION bump to main only after publishing, so every tag pointed at a commit whose VERSION was the previous release (v0.2.19 through v0.2.26). Published artifacts were unaffected because prepare rewrites VERSION from the tag, but source builds of a tag (go build, GitHub source archives, Docker builds without .git) reported the old version. prepare now fails before building or publishing when VERSION at the tag does not match the tag version. A manual run with allow_version_mismatch=true downgrades this to a warning for re-releasing older tags. The post-release sync job is removed: the VERSION bump is committed before tagging instead.