上下文,在标记发布之前,团队准备一个RELEASE_NOTES.md文件。我们希望使用此文件的内容作为内容,以便在我们剪切发布后显示在发布页面上。
是否可以通过简单地使用现有文件的内容来定制Github上发布页面的内容?
我知道你可以通过https://goreleaser.com/customization/release/#github提供的现有文件对其进行自定义。有没有可能用cat打开一个文件?
发布于 2021-09-13 01:01:55
是的,这是可能的。goreleaser release命令中有几个标志:
--release-footer string Load custom release notes footer from a markdown file
--release-footer-tmpl string Load custom release notes footer from a templated markdown file (overrides --release-footer)
--release-header string Load custom release notes header from a markdown file
--release-header-tmpl string Load custom release notes header from a templated markdown file (overrides --release-header)
--release-notes string Load custom release notes from a markdown file
--release-notes-tmpl string Load custom release notes from a templated markdown file (overrides --release-notes)您可能需要--release-notes。
https://stackoverflow.com/questions/68744563
复制相似问题