I have project on GitHub which gets build by a Jenkins over at cloudbees.
When ever the build succeeds on the master branch I'd like to update the gh-pages branch and push it to github.
I'm using Gradle as the build tool.
Are there any Gradle and/or Jenkins plugins I can use for that?
This blog post suggests using the "Git Publisher post-build action" in order to register the push action back to gh-pages branch.
In the case of the jdbc-persist project, the approach was to have three jenkins jobs:
Update August 2016: Simpler GitHub Pages publishing now allows to keep your page files in a subfolder of the same branch (no more gh-pages needed):

So you could now update the content of a subfolder within the same branch instead of updating a separate branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With