GitHub serves static HTML files that are in the gh-pages branch of your repo at http://your_username.github.com/your_repo/. In theory, Maven could be made to do the following:
- Commit the release
pom.xml.
- Generate the JavaDocs to a
.gitignore'd directory (so it would be preserved across branch changes).
- Checkout the
gh-pages branch.
- Replace all of the files in the working directory with that of the directory the JavaDocs were copied to
- Commit
- Checkout the original branch.
- Continue with release...
I'm only two days in to using Maven for a few of my projects so this is way beyond my capabilities. I'd be eager to see this implemented either with existing plugins or a custom plugin.