Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

URL to download file in latest release #658

Open

Description

@gohai

I want to be able to link to directly link to a file in the latest release of my project. This currently doesn't seem to be possible.

I can link to the page containing the latest release (e.g. releases/latest), whatever tag it has. I can also hot-link to a file of a specific (tagged) release (e.g. releases/download/v1.0.1/readme.txt). But I can't do both - e.g. releases/latest/download/readme.txt.

Activity

  1. added
    parity
    on Mar 12, 2019
  2. networkimprov commented on Apr 9, 2019

    @networkimprov

    Has this been fixed? From https://help.github.com/en/articles/linking-to-releases

    If you'd like to link directly to a download of your latest release asset you can link to
    /owner/name/releases/latest/download/asset-name.zip

  3. Rarst commented on Apr 9, 2019

    @Rarst

    That works! I wish it worked without asset name though (just give you the first/only file via /latest/download).

    If asset names are versioned then you still need to edit asset part, which isn't really different from having to edit release part.

    I guess one way is to make asset name unversioned.

  4. networkimprov commented on Apr 9, 2019

    @networkimprov

    It also doesn't seem to work for the automatic "Source code" assets...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementparityreleases

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions