{"action":"created","issue":{"url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/190","repository_url":"https://api.github.com/repos/ajoberstar/gradle-git","labels_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/190/comments","events_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/190/events","html_url":"https://github.com/ajoberstar/gradle-git/issues/190","id":162877323,"number":190,"title":"Allow a custom task to run between prepare and publish steps of GitHub Pages plugin","user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ajoberstar/gradle-git/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ajoberstar/gradle-git/milestones/19","html_url":"https://github.com/ajoberstar/gradle-git/milestones/1.6.0","labels_url":"https://api.github.com/repos/ajoberstar/gradle-git/milestones/19/labels","id":1759148,"number":19,"title":"1.6.0","description":"","creator":{"login":"ajoberstar","id":486355,"avatar_url":"https://avatars.githubusercontent.com/u/486355?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoberstar","html_url":"https://github.com/ajoberstar","followers_url":"https://api.github.com/users/ajoberstar/followers","following_url":"https://api.github.com/users/ajoberstar/following{/other_user}","gists_url":"https://api.github.com/users/ajoberstar/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoberstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoberstar/subscriptions","organizations_url":"https://api.github.com/users/ajoberstar/orgs","repos_url":"https://api.github.com/users/ajoberstar/repos","events_url":"https://api.github.com/users/ajoberstar/events{/privacy}","received_events_url":"https://api.github.com/users/ajoberstar/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-05-11T00:48:07Z","updated_at":"2016-07-03T00:25:38Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-29T09:14:42Z","updated_at":"2016-07-04T20:56:42Z","closed_at":null,"body":"Currently, the GitHub Pages plugin copies files from a generated directory into the cloned repository (presumably after the task runs that generates those files). For large sites, this extra copy step can add measurable time to the build. This could be avoided if the task that generates the site would be allowed to generate directly into the cloned repository (after the prepareGhPages task wipes existing files away).\r\n\r\nConsider allowing a custom task to be executed as an alternate to the pages CopySpec. To put it in concrete terms, consider a task such as JBake running after the doFirst of the prepareGhPages task and before the publishGhPages task."},"comment":{"url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/comments/230353289","html_url":"https://github.com/ajoberstar/gradle-git/issues/190#issuecomment-230353289","issue_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/190","id":230353289,"user":{"login":"ysb33r","id":907624,"avatar_url":"https://avatars.githubusercontent.com/u/907624?v=3","gravatar_id":"","url":"https://api.github.com/users/ysb33r","html_url":"https://github.com/ysb33r","followers_url":"https://api.github.com/users/ysb33r/followers","following_url":"https://api.github.com/users/ysb33r/following{/other_user}","gists_url":"https://api.github.com/users/ysb33r/gists{/gist_id}","starred_url":"https://api.github.com/users/ysb33r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysb33r/subscriptions","organizations_url":"https://api.github.com/users/ysb33r/orgs","repos_url":"https://api.github.com/users/ysb33r/repos","events_url":"https://api.github.com/users/ysb33r/events{/privacy}","received_events_url":"https://api.github.com/users/ysb33r/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T20:56:42Z","updated_at":"2016-07-04T20:56:42Z","body":"Woudn't it just work to have the following?\r\n\r\n```groovy\r\n// Assuming a 'jbakeTask` exists\r\n\r\npublishGhPages.dependsOn jbakeTask\r\n\r\njbakeTask {\r\n  outputDir  {prepareGhPages.destinationDir}\r\n}\r\n```"}}
{"actor":{"display_login":"ysb33r"}}