Last active
June 28, 2022 13:42
-
-
Save floriandejonckheere/f3fe93fbe038d01dcdcb to your computer and use it in GitHub Desktop.
RDoc git hook to GitHub Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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