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

Add ability to upload assets after release has been created #159

Open
inlife opened this issue Jul 19, 2019 · 0 comments
Open

Add ability to upload assets after release has been created #159

inlife opened this issue Jul 19, 2019 · 0 comments

Comments

@inlife
Copy link

inlife commented Jul 19, 2019

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
  })
}
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