Github最新版本按钮功能 [英] Github latest release button capability

查看:135
本文介绍了Github最新版本按钮功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现在github中,你可以使用最新版本按钮或链接始终克隆该项目中的最新标签,而无需特别指定版本号,但是如果我使用这样的内容:(链接仅仅是示例项目是私人的)



https:// github .com / company / project1 / releases / latest (这是我学会了应该访问的最新版本链接)



它只是将我重定向回到:



https://github.com / company / project1 / releases /



我的猜测是我必须以某种方式启用最新版本按钮/标签?我将如何做到这一点? 解决方案

它只适用于您的版本与其关联的人造物。



请参阅以下示例: https:/ /github.com/reactiveui/ReactiveUI/releases/latest





如果您定义版本时未附加任何二进制文件,那么'latest'会将您重定向到发布您的项目的页面。


I've found out that in github you can use a Latest Release button or link to always clone the latest tag from that project without specifically specifying the version number, however if I use something like this: (links are just examples project is private)

https://github.com/company/project1/releases/latest (this is how I've learned the latest release link should be accessed)

it just redirects me back to:

https://github.com/company/project1/releases/

My guess is that I have to enable the Latest Release button/tag somehow? How will I do it?

解决方案

It works only if your release has an artificat associated to it.

See for instance: https://github.com/reactiveui/ReactiveUI/releases/latest

If you define releases without ever attaching a binary to any of them, then 'latest' redirects you to the releases page of your project indeed.

这篇关于Github最新版本按钮功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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