File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ task :deploy => [:check_git] do
19
19
puts "...git pull origin \" #{ source_branch } \" "
20
20
system "git pull origin \" #{ source_branch } \" "
21
21
puts "...getting latest python docs"
22
- system "rm -rf _posts/python/html"
23
- system "git clone -b built [email protected] :plotly/plotly.py-docs _posts/python/html"
22
+ system "rm -rf _posts/python/html" or exit! ( 1 )
23
+ system "git clone -b built [email protected] :plotly/plotly.py-docs _posts/python/html" or exit! ( 1 )
24
24
puts "...update plot schema"
25
- system "python ./get_plotschema.py && git add _data/plotschema.json && git commit -m \" Updated plotschema at #{ Time . now . utc } \" && git push origin \" #{ source_branch } \" "
25
+ system "python ./get_plotschema.py && git add _data/plotschema.json && git commit -m \" Updated plotschema at #{ Time . now . utc } \" && git push origin \" #{ source_branch } \" " or exit! ( 1 )
26
26
puts "...generate _site"
27
- system "jekyll build --verbose && git checkout \" #{ deploy_branch } \" && git pull origin \" #{ deploy_branch } \" && cp -r _site/* . && rm -rf _site/ && touch .nojekyll && git add . && git commit -m \" #{ message } \" && git push origin \" #{ deploy_branch } \" "
27
+ system "jekyll build --verbose && git checkout \" #{ deploy_branch } \" && git pull origin \" #{ deploy_branch } \" && cp -r _site/* . && rm -rf _site/ && touch .nojekyll && git add . && git commit -m \" #{ message } \" && git push origin \" #{ deploy_branch } \" " or exit! ( 1 )
28
28
puts "...git checkout \" #{ source_branch } \" "
29
- system "git checkout \" #{ source_branch } \" "
29
+ system "git checkout \" #{ source_branch } \" " or exit! ( 1 )
30
30
system "osascript -e 'display notification \" rake deploy just finished\" with title \" Docs are ready!\" '"
31
31
end
You can’t perform that action at this time.
0 commit comments