Do not copy _site dir to gh-pages dir on release.

This commit is contained in:
Tom Preston-Werner 2012-12-26 15:42:39 -07:00
parent 708ae28d8a
commit 6c02483255
1 changed files with 4 additions and 1 deletions

View File

@ -144,7 +144,10 @@ task :site_release do
# Copy the rest of the site over. # Copy the rest of the site over.
puts "Copying static..." 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 # Commit the changes
sha = `git log`.match(/[a-z0-9]{40}/)[0] sha = `git log`.match(/[a-z0-9]{40}/)[0]