From 6c02483255b3424a382ba4c29b4b72994bc36258 Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Wed, 26 Dec 2012 15:42:39 -0700 Subject: [PATCH] Do not copy _site dir to gh-pages dir on release. --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 5ef52dc8..87cbeb87 100644 --- a/Rakefile +++ b/Rakefile @@ -144,7 +144,10 @@ task :site_release do # Copy the rest of the site over. puts "Copying static..." - sh "cp -R site/* gh-pages/" + Dir.glob("site/*") do |path| + next if path == "_site" + sh "cp -R #{path} gh-pages/" + end # Commit the changes sha = `git log`.match(/[a-z0-9]{40}/)[0]