Browse Source

updated push rake task to copy contents of public directory into _deploy

unreleased_contents
Brandon Mathis 13 years ago
parent
commit
a12b0b7f6e
  1. 2
      Rakefile

2
Rakefile

@ -163,7 +163,7 @@ desc "deploy public directory to github pages"
task :push do task :push do
puts "## Deploying branch to Github Pages " puts "## Deploying branch to Github Pages "
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) } (Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
system "cp -R #{public_dir}/ #{deploy_dir}" system "cp -R #{public_dir}/* #{deploy_dir}"
puts "\n## copying #{public_dir} to #{deploy_dir}" puts "\n## copying #{public_dir} to #{deploy_dir}"
cd "#{deploy_dir}" do cd "#{deploy_dir}" do
system "git add ." system "git add ."

Loading…
Cancel
Save