This repository was archived by the owner on Nov 6, 2026. It is now read-only.
Repository navigation
Feat/release workflow - #22
Merged
Merged
Conversation
- 新增 .github/workflows/release.yml:workflow_dispatch 填 vX.Y.Z + 说明, 校验后打 annotated tag、建 GitHub Release,并显式触发 publish-image (GITHUB_TOKEN 推的 tag 不会再触发 push 事件) - internal/config.Version 由 const 改为 var,默认 0.0.0,构建时用 -ldflags -X oc2api/internal/config.Version=<ver> 注入,不再回写源码 - 版本号策略:tag -> x.y.z;其余(main/PR/手动分支)-> <最近tag>-SNAPSHOT-<短sha>(goreleaser 风格) - Dockerfile / docker-compose / Vercel build-go.sh 支持 VERSION 构建参数 - publish-image 从 ref 解析版本号作为 --build-arg VERSION 注入镜像,并加 OCI version 标签 - publish-image:PR 只构建 linux/amd64 验证 Dockerfile(不跑 QEMU/arm64),发布构建仍多架构 - 更新 AGENTS.md 发布章节与 README
- workflow_dispatch 输入从手填 version/description 改为选择 patch/minor/major - 依据最近 v* tag 推算下一个版本,并校验 tag 不存在 - workflow 内用 git log 抓取上个 tag..HEAD 的提交标题,按 Conventional Commits 分组生成 Release 正文 - 默认版本号统一为 dev(config、Dockerfile、compose、build-go.sh),未注入即 dev - publish-image 非 tag 构建在无 tag 时用 dev 兜底 - 同步更新 AGENTS / README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.