Skip to content

Instantly share code, notes, and snippets.

@floriandejonckheere
Last active June 28, 2022 13:42
Show Gist options
  • Save floriandejonckheere/f3fe93fbe038d01dcdcb to your computer and use it in GitHub Desktop.
Save floriandejonckheere/f3fe93fbe038d01dcdcb to your computer and use it in GitHub Desktop.
RDoc git hook to GitHub Pages
#!/usr/bin/sh
git checkout gh-pages
git merge master
rake rdoc
git add -f html
git commit -m "Generate RDoc for commit $(git rev-parse master)"
git push --no-verify
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment