release icon indicating copy to clipboard operation
release copied to clipboard

Add ability to upload assets after release has been created

Open inlife opened this issue 6 years ago • 0 comments

Hello

Would be nice to have an ability to provide tools for uploading assets (compiled binaries, custom archives, and other types of artifacts). The easiest possible way I see would be probably by modifying the hooks to support additional functions.

module.exports = async (markdown, metaData) => {
  // Use the available data to create a custom release
  return markdown
}

/**
 * @param github - an authorized @octokit/rest instance
 * @param uploadUrl - part of http response for create release request
 */
module.exports.post = async (github, uploadUrl) => {
  github.repos.uploadReleaseAsset({
    uploadUrl, headers, name, file
  })
}

inlife avatar Jul 19 '19 16:07 inlife