Checking to see if 'git push' worked in deploy. #866.

This commit is contained in:
Parker Moore 2012-12-19 22:45:11 -05:00
parent b97839f0d2
commit 66c9ede87e

View File

@ -325,8 +325,11 @@ multitask :push do
puts "\n## Commiting: #{message}"
system "git commit -m \"#{message}\""
puts "\n## Pushing generated #{deploy_dir} website"
system "git push origin #{deploy_branch}"
puts "\n## GitHub Pages deploy complete"
if system "git push origin #{deploy_branch}"
puts "\n## GitHub Pages deploy complete"
else
puts "\n## Octopress could not push to your repository. Check your internet connection."
end
end
else
puts "This project isn't configured for deploying to GitHub Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`."