pub fn fetch_latest_release_asset(repo: &str, asset_name: &str) -> Result<Asset>Expand description
Fetches the named asset from the latest GitHub release.
repo must be in owner/name format (e.g. "OGKevin/cadmus").
Currently unused because asset directories are sourced from the Plato
release zip as a workaround (see issue #64). When that issue is resolved
and Cadmus builds these directories from source, the entire
download_assets task will be removed and this function along with it.
ยงErrors
Returns an error if the HTTP request fails, the response cannot be parsed, or no asset with the given name exists in the latest release.