我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.19

管理仓库中的发行版

You can create releases to bundle and deliver iterations of a project to users.

Repository collaborators and people with write access to a repository can create, edit, and delete a release.

本文内容

You can also publish a GitHub 操作 from a specific release in GitHub Marketplace. 更多信息请参阅 GitHub 开发者文档中的“在 GitHub Marketplace 中发布操作”。

Creating a release

  1. 在 GitHub Enterprise 上,导航到仓库的主页面。
  2. 在仓库名称下,单击 Releases(发布)
    发布选项卡
  3. 单击 Draft a new release(草拟新发行版)
    发行版草稿按钮
  4. 键入发行版的版本号。 版本基于 Git 标记。 我们建议使用语义版本号命名标记。
    发行版标记版本
  5. Use the drop-down menu to select the branch that contains the project you want to release.
    发行版标记分支
  6. 键入发行版的标题和说明。
    发行版说明
  7. Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box.
    通过发行版提供 DMG
  8. To notify users that the release is not ready for production and may be unstable, select This is a pre-release.
    将版本标记为预发行版的复选框
  9. 如果您准备推广您的发行版,请单击 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 开发者文档.

编辑发行版

  1. 在 GitHub Enterprise 上,导航到仓库的主页面。
  2. 在仓库名称下,单击 Releases(发布)
    发布选项卡
  3. On the right side of the page, next to the release you want to edit, click Edit release.
    Edit a release
  4. Edit the details for the release in the form, then click Update release.
    Update a release

删除发行版

You must remove all binary files attached to a release before you can delete a release.

  1. 在 GitHub Enterprise 上,导航到仓库的主页面。
  2. 在仓库名称下,单击 Releases(发布)
    发布选项卡
  3. Click the name of the release you wish to delete.
    Link to view release
  4. 在页面右上角,单击 Delete(删除)
    Delete release button
  5. Click Delete this release.
    Confirm delete release

问问别人

找不到要找的内容?

联系我们