Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github keep link in readme persistent to latest releases asset file

Tags:

git

github

I have an installer file in the latest release and I want to have a persistent link in the readme to it. It seems that the /releases/latest isn't an alias that I could use to construct the path as /releases/latest/mydownloader.exe

The current workarounds I have:

1) Create a tag release and always delete and recreate it:

github.com/user/project/releases/download/release/install.exe

2) Modify readme.md anytime I do a new release and update path

github.com/user/project/releases/download/20190218/install.exe
like image 516
user1767754 Avatar asked Nov 01 '25 07:11

user1767754


1 Answers

The tag remains the least intrusive option (you don't have to modify your README, adding a new commit on each release)

As explain in "Is there a link to GitHub for downloading a file in the latest release of a repository?", there is no API support for referencing a latest released file as a permanent link.

like image 153
VonC Avatar answered Nov 03 '25 21:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!