{"action":"created","issue":{"url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/20","repository_url":"https://api.github.com/repos/WDOTS/wdots.github.io","labels_url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/20/comments","events_url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/20/events","html_url":"https://github.com/WDOTS/wdots.github.io/issues/20","id":165088078,"number":20,"title":"Define and implement a build and deployment process","user":{"login":"SiAdcock","id":5931528,"avatar_url":"https://avatars.githubusercontent.com/u/5931528?v=3","gravatar_id":"","url":"https://api.github.com/users/SiAdcock","html_url":"https://github.com/SiAdcock","followers_url":"https://api.github.com/users/SiAdcock/followers","following_url":"https://api.github.com/users/SiAdcock/following{/other_user}","gists_url":"https://api.github.com/users/SiAdcock/gists{/gist_id}","starred_url":"https://api.github.com/users/SiAdcock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiAdcock/subscriptions","organizations_url":"https://api.github.com/users/SiAdcock/orgs","repos_url":"https://api.github.com/users/SiAdcock/repos","events_url":"https://api.github.com/users/SiAdcock/events{/privacy}","received_events_url":"https://api.github.com/users/SiAdcock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T14:02:00Z","updated_at":"2016-07-12T18:48:51Z","closed_at":null,"body":"This issue is a placeholder for a conversation about the build process. I shall keep this post up to date with decisions we make.\r\n"},"comment":{"url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/comments/232142530","html_url":"https://github.com/WDOTS/wdots.github.io/issues/20#issuecomment-232142530","issue_url":"https://api.github.com/repos/WDOTS/wdots.github.io/issues/20","id":232142530,"user":{"login":"SiAdcock","id":5931528,"avatar_url":"https://avatars.githubusercontent.com/u/5931528?v=3","gravatar_id":"","url":"https://api.github.com/users/SiAdcock","html_url":"https://github.com/SiAdcock","followers_url":"https://api.github.com/users/SiAdcock/followers","following_url":"https://api.github.com/users/SiAdcock/following{/other_user}","gists_url":"https://api.github.com/users/SiAdcock/gists{/gist_id}","starred_url":"https://api.github.com/users/SiAdcock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiAdcock/subscriptions","organizations_url":"https://api.github.com/users/SiAdcock/orgs","repos_url":"https://api.github.com/users/SiAdcock/repos","events_url":"https://api.github.com/users/SiAdcock/events{/privacy}","received_events_url":"https://api.github.com/users/SiAdcock/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T18:48:51Z","updated_at":"2016-07-12T18:48:51Z","body":"# Deployment process proposal\r\n\r\nGitHub pages is served from the `master` branch of the `wdots.github.io` repo. This poses an interesting question as to how to get built code (minified JS, CSS and HTML) onto the `master` branch. I think we ought to avoid checking built code into GitHub if we can help it.\r\n\r\nMy suggestion is this: we create a new branch called `integration` into which we will merge our code.\r\n\r\nWhen code is merged into `integration`, it will kick off a job in a Continuous Integration tool such as Travis CI. This job will run a script that does the following:\r\n\r\n1. clones the repo onto the CI server\r\n2. checks out the integration branch\r\n3. runs the build\r\n4. merges the built code into master\r\n5. pushes the master branch to GitHub\r\n\r\nThere is a gist of a script we can use here:\r\n\r\nhttps://gist.github.com/domenic/ec8b0fc8ab45f39403dd\r\n\r\nWe will no longer merge into `master`. In fact that branch will be locked to prevent accidental commits. In the future we will only merge into `integration`\r\n\r\nDoes anyone have any thoughts on this?\r\n"}}
{"actor":{"display_login":"SiAdcock"}}