Created
October 21, 2014 05:48
-
-
Save lsegal/6da2ba30c040f19faa6b to your computer and use it in GitHub Desktop.
Generate docs from release
This file contains hidden or 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
task :release do | |
version = RSpec::Core::VERSION.split('.')[0,2].join('.') | |
docs_dir = "docs/#{version}" | |
sh "yard -o pages-tmp" | |
sh "git checkout gh-pages" | |
rm_rf docs_dir | |
mv pages-tmp, docs_dir | |
sh "git add #{docs_dir}" | |
sh "git commit -m 'Update docs for #{version}'" | |
sh "git push" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment