Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Rakefile

  • Loading branch information...
commit dc44dc700afa15ed36de7e57bf81d6b1cad7f969 1 parent 08b3738
Braden Schaeffer authored
Showing with 16 additions and 1 deletion.
  1. +16 −1 Rakefile
17 Rakefile
View
@@ -59,7 +59,7 @@ namespace :ohm do
end
end
- task git_release_tasks: [:commit, :tag, :push]
+ task git_release_tasks: [:commit, :tag, :push, :doc_commit_version]
task :commit do
sh('git reset')
@@ -69,6 +69,21 @@ namespace :ohm do
task :doc do
sh("cd docs/ && ./node_modules/yuidocjs/lib/cli.js -c yuidoc.json --project-version #{project_version}")
+ sh("rm -rf docs/build/files")
+ end
+
+ task :pre_doc_commit do
+ sh("git checkout gh-pages")
+ sh("cp -r ./docs/build/* ./")
+ sh("git add .")
+ end
+
+ task doc_commit: [:doc, :pre_doc_commit] do
+ sh("git commit --message 'Autoupdate docs'")
+ end
+
+ task doc_commit_version: [:doc, :pre_doc_commit] do
+ sh("'git commit --message 'Update docs to v#{project_version}'")
end
task :tag do
Please sign in to comment.
Something went wrong with that request. Please try again.