File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -247,18 +247,21 @@ end
247
247
desc "deploy public directory to github pages"
248
248
multitask :push do
249
249
puts "## Deploying branch to Github Pages "
250
+ puts "## Pulling any updates from Github Pages "
251
+ cd "#{ deploy_dir } " do
252
+ system "git pull"
253
+ end
250
254
( Dir [ "#{ deploy_dir } /*" ] ) . each { |f | rm_rf ( f ) }
251
255
Rake ::Task [ :copydot ] . invoke ( public_dir , deploy_dir )
252
- puts "\n ## copying #{ public_dir } to #{ deploy_dir } "
256
+ puts "\n ## Copying #{ public_dir } to #{ deploy_dir } "
253
257
cp_r "#{ public_dir } /." , deploy_dir
254
258
cd "#{ deploy_dir } " do
255
- system "git add ."
256
- system "git add -u"
259
+ system "git add -A"
257
260
puts "\n ## Commiting: Site updated at #{ Time . now . utc } "
258
261
message = "Site updated at #{ Time . now . utc } "
259
262
system "git commit -m \" #{ message } \" "
260
263
puts "\n ## Pushing generated #{ deploy_dir } website"
261
- system "git push origin #{ deploy_branch } --force "
264
+ system "git push origin #{ deploy_branch } "
262
265
puts "\n ## Github Pages deploy complete"
263
266
end
264
267
end
You can’t perform that action at this time.
0 commit comments