Use a more portable way to create .nojekyll file when deploying to github pages.

This commit is contained in:
Hong Xu 2012-05-27 13:49:35 +08:00
parent 0b088433ca
commit c1b2b43b32

View File

@ -295,7 +295,7 @@ multitask :push do
puts "\n## copying #{public_dir} to #{deploy_dir}"
cp_r "#{public_dir}/.", deploy_dir
cd "#{deploy_dir}" do
system "touch .nojekyll"
File.new(".nojekyll", "w").close
system "git add ."
system "git add -u"
message = "Site updated at #{Time.now.utc}"