diff options
author | B Mathis <brandon@imathis.com> | 2009-11-24 17:15:37 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-24 17:15:37 -0600 |
commit | 24246ea8088eb612818c67ca47ddc20484d0bb93 (patch) | |
tree | 377e9450664be03c86b3d94f90c169719b7b573d | |
parent | b4540bb461bc72acf11fe3640c3f8a753ced4192 (diff) | |
download | my_new_personal_website-24246ea8088eb612818c67ca47ddc20484d0bb93.tar.xz my_new_personal_website-24246ea8088eb612818c67ca47ddc20484d0bb93.zip |
fixed variables for github in rakefile
-rw-r--r-- | Rakefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -103,13 +103,14 @@ multitask :deploy_github => [:default, :clean_debug] do require 'git' repo = Git.open('.') repo.branch("#{deploy_branch}").checkout - (Dir["*"] - ["#{site}/*"]).each { |f| rm_rf(f) } + (Dir["*"] - [site]).each { |f| rm_rf(f) } Dir["#{site}/*"].each {|f| mv(f, ".")} - rm_rf("#{site}/*") + rm_rf(site) Dir["**/*"].each {|f| repo.add(f) } repo.status.deleted.each {|f, s| repo.remove(f)} message = ENV["MESSAGE"] || "Site updated at #{Time.now.utc}" repo.commit(message) + repo.push("#{deploy_branch} origin") repo.branch("#{source_branch}").checkout end |