pub fn publish_draft(
token: &str,
repo: &Repo,
release: &NewRelease<'_>,
id: u64,
) -> Result<String>Expand description
Publish the draft id for release, which creates its tag at
release.sha, and return the Release URL.
The draft is read again first, so the check sees what GitHub has: a draft that lacks a declared asset is never published.
ยงErrors
Returns an error when the GitHub client cannot be built, the draft cannot be read or published, or it lacks a declared asset.