{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9360","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9360/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9360/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9360/events","html_url":"https://github.com/travis-ci/travis-ci/issues/9360","id":306319069,"number":9360,"title":"Unable to upload multiple assets to the same github release","user":{"login":"nelsonw2014","id":5667236,"avatar_url":"https://avatars2.githubusercontent.com/u/5667236?v=4","gravatar_id":"","url":"https://api.github.com/users/nelsonw2014","html_url":"https://github.com/nelsonw2014","followers_url":"https://api.github.com/users/nelsonw2014/followers","following_url":"https://api.github.com/users/nelsonw2014/following{/other_user}","gists_url":"https://api.github.com/users/nelsonw2014/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonw2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonw2014/subscriptions","organizations_url":"https://api.github.com/users/nelsonw2014/orgs","repos_url":"https://api.github.com/users/nelsonw2014/repos","events_url":"https://api.github.com/users/nelsonw2014/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonw2014/received_events","type":"User","site_admin":false},"labels":[{"id":48084799,"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/deployment","name":"deployment","color":"444444","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-19T03:05:53Z","updated_at":"2018-03-22T23:07:07Z","closed_at":null,"author_association":"NONE","body":"When I build an application, I want to be able to cross compile my program to other operating systems. You have already built this functionality with gimme, allowing me to build for osx and windows in addition to linux. \r\n\r\nHowever, when I'm trying to deploy the assets to github releases, what inevitably happens is the first completed build creates a release entry and uploads the asset, followed by the second and third finished builds attempting to do so and failing because I've designated all of the releases to share the same tag_name. The desired result would be all three assets residing in the same release.\r\n\r\nTo work around this issue, I would have to instead create 3 separate releases for the same build, which is undesirable because it creates 3 separate links to the same commit where the only difference is platform.\r\n\r\nOctokit offers functionality for uploading assets to previously existing releases, so the logic can be added to upload assets to previously existing releases should the required fields match. I imagine this would make continuous deployment significantly easier for projects that compile and provide binaries for multiple platforms on github.\r\n\r\n[Here](https://travis-ci.org/nelsonw2014/cicd-example/builds/355192002) is my build which I'm trying to currently upload all assets to the same release and failing for obvious reasons. If logic could be created for this use case it would definitely be appreciated.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/375486536","html_url":"https://github.com/travis-ci/travis-ci/issues/9360#issuecomment-375486536","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9360","id":375486536,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars3.githubusercontent.com/u/25666?v=4","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T23:07:07Z","updated_at":"2018-03-22T23:07:07Z","author_association":"OWNER","body":"So, I think we can add some messages to indicate how we are setting the `tag_name`, which is eventually sent to GitHub via the API client. Your \"use-driven guidance\" seems really difficult to achieve in this context, but I think that will help.\r\n\r\nClear documentation, of course, is desirable, independent of such messages."}}
{"actor":{"display_login":"BanzaiMan"}}