Skip to content

Instantly share code, notes, and snippets.

@ismailmechbal
Created November 17, 2016 21:11
Show Gist options
  • Save ismailmechbal/cf2d8f45cad79ff00da87269b2e38814 to your computer and use it in GitHub Desktop.
Save ismailmechbal/cf2d8f45cad79ff00da87269b2e38814 to your computer and use it in GitHub Desktop.
# Rakefile to build and compile a Jekyll site into a new directory used at https://www.stockholmsbadrumsrenovering.com
GH_PAGES_DIR = "compiled_site"
desc "Build Jekyll site and copy files"
task :build do
system "jekyll build"
system "rm -r ../#{GH_PAGES_DIR}/*" unless Dir['../#{GH_PAGES_DIR}/*'].empty?
system "cp -r _site/* ../#{GH_PAGES_DIR}/"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment