Skip to content

Instantly share code, notes, and snippets.

@lsegal
Created October 21, 2014 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsegal/6da2ba30c040f19faa6b to your computer and use it in GitHub Desktop.
Save lsegal/6da2ba30c040f19faa6b to your computer and use it in GitHub Desktop.
Generate docs from release
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