Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download button #156

Open
MichaelCurrin opened this issue Feb 27, 2022 · 2 comments
Open

Download button #156

MichaelCurrin opened this issue Feb 27, 2022 · 2 comments

Comments

@MichaelCurrin
Copy link
Owner

MichaelCurrin commented Feb 27, 2022

Hardcoded as latest zip or master.zip

![Download latest zip](https://img.shields.io/badge/Download-latest_zip-blue?style=for-the-badge)

Download latest zip

Suggested URL

https://github.com/MichaelCurrin/os-genesis/archive/master.zip


Release - dynamically points to latest by using the API JSON data to get the tag name

Download latest release zip

![Download latest release zip](https://img.shields.io/badge/dynamic/json.svg?label=download&url=https://api.github.com/repos/rarst/laps/releases/latest&query=$.tag_name&style=for-the-badge)

URL

https://github.com/MichaelCurrin/os-genesis/releases/latest

OR reference exact tag - "latest" doesn't work here.

from https://github.com/MichaelCurrin/os-genesis/releases


If you needed assets attached to the release, line binaries

From https://api.github.com/repos/Rarst/laps/releases

browser_download_url: "https://github.com/Rarst/laps/releases/download/3.3.6/laps.zip"

https://github.com/Rarst/laps/releases/download/3.3.6/laps.zip
https://github.com/Rarst/laps/releases/download/master/laps.zip - this works at latest on master, but not latest tag.

@MichaelCurrin
Copy link
Owner Author

This could go on a separate page.

Needs repo info, branch name or tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant