创建发行版
-
在 your GitHub Enterprise Server instance 上,导航到仓库的主页面。
-
To the right of the list of files, click Releases.
-
单击 Draft a new release(草拟新发行版)。
-
Type a version number for your release. Alternatively, select an existing tag.
-
If you have created a new tag, use the drop-down menu to select the branch that contains the project you want to release.
-
键入发行版的� �题和说明。
-
(可选)要在发行版中包含二进制文件(例如已编译的程序),请在二进制文件框中拖放或手动选择文件。
-
要通知用户发行版本尚不可用于生产,可能不稳定,请选择 This is a pre-release(这是预发布)。
-
如果您准备推广您的发行版,请单击 Publish release(发布版本)。 要在以后处理该发行版,请单击 Save draft(保存草稿)。
要了解有关 GitHub CLI 的更多信息,请参阅“关于 GitHub CLI”。
-
To create a release, use the
gh release create
subcommand. Replacetag
with the desired tag for the release.gh release create tag
-
Follow the interactive prompts. Alternatively, you can specify arguments to skip these prompts. For more information about possible arguments, see the GitHub CLI manual. For example, this command creates a prerelease with the specified title and notes.
gh release create v1.3.2 --title "v1.3.2 (beta)" --notes "this is a beta release" --prerelease
编辑发行版
-
在 your GitHub Enterprise Server instance 上,导航到仓库的主页面。
-
To the right of the list of files, click Releases.
-
在页面右侧要编辑的发行版旁边,单击 Edit release(编辑发行版)。
-
Edit the details for the release in the form, then click Update release.
Releases cannot currently be edited with GitHub CLI.
� 除发行版
-
在 your GitHub Enterprise Server instance 上,导航到仓库的主页面。
-
To the right of the list of files, click Releases.
-
单击要� 除的发行版的名称。
-
在页面右上角,单击 Delete(� 除)。
-
单击 Delete this release(� 除此发行版)。
-
To delete a release, use the
gh release delete
subcommand. Replacetag
with the tag of the release to delete. Use the-y
flag to skip confirmation.gh release delete tag -y