{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6392","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6392/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6392/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6392/events","html_url":"https://github.com/travis-ci/travis-ci/issues/6392","id":168521925,"number":6392,"title":"How to deploy like \"push to a dist repo\"","user":{"login":"cyrilchapon","id":10728426,"avatar_url":"https://avatars.githubusercontent.com/u/10728426?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrilchapon","html_url":"https://github.com/cyrilchapon","followers_url":"https://api.github.com/users/cyrilchapon/followers","following_url":"https://api.github.com/users/cyrilchapon/following{/other_user}","gists_url":"https://api.github.com/users/cyrilchapon/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrilchapon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrilchapon/subscriptions","organizations_url":"https://api.github.com/users/cyrilchapon/orgs","repos_url":"https://api.github.com/users/cyrilchapon/repos","events_url":"https://api.github.com/users/cyrilchapon/events{/privacy}","received_events_url":"https://api.github.com/users/cyrilchapon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-31T15:03:45Z","updated_at":"2016-08-01T12:38:49Z","closed_at":null,"body":"I've read much about deploy and the \"releases\" part, but I can't figure out how to make a simple push to a \"dist\" repo.\r\n\r\nAs for now, I'm able to :\r\n- Detect any push\r\n- Build my project \"on push\"\r\n- If this is a tag, \"Deploy\" it on the same repo (wrap a tag with a release, and add some files)\r\n\r\nMy build process creates both a \"dist\" folder and a \"dist.zip\". I'd like to push to another repository this dist folder. But the dist folder is naturally not commited to my source repository.\r\n\r\nI might be missing something but this seems a pretty classical workflow to me :\r\n- I push a tag\r\n- The CI system detect this is a tag, it makes a new \"release\"\r\n- It deploys the release to a distribution repository\r\n\r\n(example : I think Jquery has this workflow working : [sources](https://github.com/jquery/jquery), [distribution](https://github.com/jquery/jquery-dist)"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/236569202","html_url":"https://github.com/travis-ci/travis-ci/issues/6392#issuecomment-236569202","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6392","id":236569202,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","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":"2016-08-01T12:38:49Z","updated_at":"2016-08-01T12:38:49Z","body":"The build on Travis should:\r\n\r\n1. Configure git (at the least, you'd need `user.name` and `user.email`).\r\n1. Set up git authentication for the target repo. On GitHub, you can use the auth token with limited scope. Be sure to encrypt this authentication token: https://docs.travis-ci.com/user/encryption-keys; https://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables.\r\n1. Clone the target repository\r\n1. Create a new commit\r\n1. Push the new commit"}}
{"actor":{"display_login":"BanzaiMan"}}