如何在GitLab中创建发布? [英] How to create releases in GitLab?

查看:939
本文介绍了如何在GitLab中创建发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个私有存储库,然后将其更改为公共存储库.但是,我找不到任何释放方式.是否可以在GitLab中创建发行版?如果是这样,他们如何完成?

I had created a private repository which I then changed to public repository. However, I could not find any way to release. Is it possible to create releases in GitLab? If so, how are they done?

推荐答案

要在GitLab网站上创建发布,请执行以下操作:

To create a release on the GitLab website:

  1. 转到您的存储库
  2. 在菜单中选择存储库>标签
  3. 为您的应用版本添加标签.例如,v1.3.1.
  4. 添加有关该发行版的消息(标题).例如,Release 1.3.1.
  5. 添加说明该发行版详细信息的注释. (不是可选的.在标签上添加注释就是使它成为发行版的原因.)
  6. 点击创建标签.
  1. Go to your repository
  2. In the menu choose Repository > Tags
  3. Add a tag for the version of your app. For example, v1.3.1.
  4. Add a message (title) about the release. For example, Release 1.3.1.
  5. Add a note that describes the details of the release. (Not optional. Adding a note to a tag is what makes it a release.)
  6. Click Create tag.

该版本现在将显示在项目>版本下.在 GitLab文档中了解更多信息. GitLab建议您现在使用发布API ,但要使用其文档很难遵循.不过,这将是使用CI/CD自动执行所有操作的首选方法.

The release will now show up under Project > Releases. Read more at the GitLab documentation. GitLab recommends that you use the Release API now, but their documentation is hard to follow. It would be the preferred method for automating everything with CI/CD, though.

这篇关于如何在GitLab中创建发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆