GitHub 发布、多个文件和版本控制

标签 github release versioning github-actions semantic-versioning

如果我有一个具有以下文件/文件夹结构的 GitHub 存储库 github.com/@product/template:

/build
  /fileA
  /fileB
/src
  /generator.sh

GitHub 似乎对如何对文件发布进行分组没有固执己见。有多种选择:

包含多个文件的版本

github.com/@product/template
  v1.0.0
    /fileA
    /fileB
  v1.1.0
    /fileA
    /fileB
  v1.2.0
    /fileA
    /fileB

分别发布每个文件

github.com/@product/template
  fileA-v1.0.0
    /fileA
  fileA-v1.1.0
    /fileA
  fileA-v1.2.0
    /fileA
  fileB-v1.0.0
    /fileB
  fileB-v1.1.0
    /fileB
  fileB-v1.2.0
    /fileB

想知道每种模式的优点/缺点是什么?考虑到文件可以独立更新? fileA 已更新,是否也会发布新版本的 fileB?

用户需要搜索更长的版本列表才能找到他们想要下载的文件吗?

最佳答案

GitHub doesn't seem to be opinionated how to group file releases

没错,它没有意见:您正在构建您认为合适的发布 Assets 。

但是:一个版本(一个文件或多个文件)与一个标签相关联(参见“creating a release”)
该标签适用于所有源存储库(适用于其中的所有文件)

这就是为什么新版本通常包括所有新交付的原因。

关于GitHub 发布、多个文件和版本控制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65298754/

相关文章:

git - 可以将 GitHub Secrets 与公共(public)存储库一起使用吗?

iphone - UIViewController 推送和弹出问题

git - 为什么我得到 "fatal: git status --porcelain failed"?

heroku - 为什么为现有应用程序更改 heroku buildpack 不会运行 bin/release

ASP.NET Web API 契约(Contract)版本控制

docker - 可以在不同版本上重复使用 Docker 标签吗?

ubuntu - GitHub 卡住比较或拉取请求 Firefox Developer Edition

git - 将克隆的 git repo 转换为 fork 的

python - 如何让设置工具安装 github 分支的 PyPI 包?

debugging - flutter : A procedure runs well in debug mode but not after release, 为什么?