mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Checking to see if 'git push' worked in deploy. #866.
This commit is contained in:
parent
33a1dbac30
commit
80fad2180e
5
Rakefile
5
Rakefile
@ -325,8 +325,11 @@ multitask :push do
|
|||||||
puts "\n## Commiting: #{message}"
|
puts "\n## Commiting: #{message}"
|
||||||
system "git commit -m \"#{message}\""
|
system "git commit -m \"#{message}\""
|
||||||
puts "\n## Pushing generated #{deploy_dir} website"
|
puts "\n## Pushing generated #{deploy_dir} website"
|
||||||
system "git push origin #{deploy_branch}"
|
if system "git push origin #{deploy_branch}"
|
||||||
puts "\n## GitHub Pages deploy complete"
|
puts "\n## GitHub Pages deploy complete"
|
||||||
|
else
|
||||||
|
puts "\n## Octopress could not push to your repository. Check your internet connection."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
puts "This project isn't configured for deploying to GitHub Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`."
|
puts "This project isn't configured for deploying to GitHub Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`."
|
||||||
|
Loading…
Reference in New Issue
Block a user