28 lines
518 B
Markdown
28 lines
518 B
Markdown
# gh release
|
|
|
|
> 管理 GitHub 发布。
|
|
> 更多信息:<https://cli.github.com/manual/gh_release>。
|
|
|
|
- 列出 GitHub 存储库中的发布,限制为 30 项:
|
|
|
|
`gh release list`
|
|
|
|
- 显示特定发布的信息:
|
|
|
|
`gh release view {{tag}}`
|
|
|
|
- 创建一个新发布:
|
|
|
|
`gh release create {{tag}}`
|
|
|
|
- 删除特定发布:
|
|
|
|
`gh release delete {{tag}}`
|
|
|
|
- 从特定发布下载资产:
|
|
|
|
`gh release download {{tag}}`
|
|
|
|
- 上传资产到特定发布:
|
|
|
|
`gh release upload {{tag}} {{path/to/file1 path/to/file2 ...}}` |