文章版本: Enterprise Server 2.17
管理仓库中的发行版
You can create releases to bundle and deliver iterations of a project to users.
You can also publish a GitHub 操作 from a specific release in GitHub Marketplace. 更多信息请参阅 GitHub 开发者文档中的“在 GitHub Marketplace 中发布操作”。
Creating a release
- 在 GitHub Enterprise 上,导航到仓库的主页面。
- 在仓库名称下,单击 Releases(发布)。
- 单击 Draft a new release(草拟新发行版)。
- 键入发行版的版本号。 版本基于 Git 标记。 我们建议使用语义版本号命名标记。
- Use the drop-down menu to select the branch that contains the project you want to release.
- 键入发行版的标题和说明。
- Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box.
- To notify users that the release is not ready for production and may be unstable, select This is a pre-release.
- 如果您准备推广您的发行版,请单击 Publish release(发布版本)。 要在以后处理该发行版,请单击 Save draft(保存草稿)。
You can also automatically create a release from the command line or in a script. For more information, see "Releases" in GitHub 开发者文档.
编辑发行版
- 在 GitHub Enterprise 上,导航到仓库的主页面。
- 在仓库名称下,单击 Releases(发布)。
- On the right side of the page, next to the release you want to edit, click Edit release.
- Edit the details for the release in the form, then click Update release.
删除发行版
You must remove all binary files attached to a release before you can delete a release.
- 在 GitHub Enterprise 上,导航到仓库的主页面。
- 在仓库名称下,单击 Releases(发布)。
- Click the name of the release you wish to delete.
- 在页面右上角,单击 Delete(删除)。
- Click Delete this release.