Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Managing releases in a repository

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

Who can use this feature

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

About release management

You can create new releases with release notes, @mentions of contributors, and links to binary files, as well as edit or delete existing releases.

Creating a release

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. 在文件列表右侧,单击“发布”。 右侧边� �中的“发布”部分

  3. Click Draft a new release.

    Releases draft button

  4. Type a version number for your release. Alternatively, select an existing tag.

    Releases tagged version

  5. If you have created a new tag, use the drop-down menu to select the branch that contains the project you want to release.

    Releases tagged branch

  6. Type a title and description for your release.

    Releases description

  7. Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box. Providing a DMG with the Release

  8. To notify users that the release is not ready for production and may be unstable, select This is a pre-release. Checkbox to mark a release as prerelease

  9. If you're ready to publicize your release, click Publish release. To work on the release later, click Save draft. Publish release and Draft release buttons

Editing a release

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. 在文件列表右侧,单击“发布”。 右侧边� �中的“发布”部分

  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

Deleting a release

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. 在文件列表右侧,单击“发布”。 右侧边� �中的“发布”部分

  3. Click the name of the release you wish to delete. Link to view release

  4. In the upper-right corner of the page, click Delete. Delete release button

  5. Click Delete this release. Confirm delete release