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

查看:16
本文介绍了如何在 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. 点击创建标签.

该版本现在将显示在 Project > Releases 下.阅读 GitLab 文档 了解更多信息.GitLab 建议您现在使用 Release 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天全站免登陆