Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: japanese
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (26 sloc) 0.732 kB
task :deploy do
system 'git checkout japanese'
system 'rm -rf ./_site'
system 'mkdir _site'
system 'jekyll build'
system 'rm -rf ../_site'
system 'cp -r ./_site ../_site'
system 'git checkout gh-pages'
Dir[`pwd`[0..-2] + "/*"].each do |file|
skip = ["CNAME", "sitemap", "Rakefile", "README"]
next if file.include? "CNAME" or file.include? "sitemap" or file.include? "Rakefile"
begin
FileUtils.rm_rf(file)
rescue
FileUtils.rm(file)
end
end
system 'mv ../_site/* ./'
system 'git status'
msg = `git status`
system 'git add .'
system "git commit -m 'Sync gh-pages \n #{msg}'"
system 'git push origin gh-pages'
system 'git checkout japanese'
system 'rm -rf ../_site'
end
Jump to Line
Something went wrong with that request. Please try again.