diff --git a/README.md b/README.md index 4f5b5041..a03b0d59 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This repository generates https://keepachangelog.com/. - `bin/rake clean` can clean a corrupted `build/` directory in case `publish` failed -- `bin/rake publish` builds and pushes to the `gh-pages` branch on GitHub so +- `bin/rake deploy` cleans, builds and pushes to the `gh-pages` branch on GitHub so the site is deployed to keepachangelog.com ### Translations diff --git a/Rakefile b/Rakefile index 058d5d97..a17971e9 100644 --- a/Rakefile +++ b/Rakefile @@ -6,16 +6,16 @@ task :serve do system("bundle exec middleman serve") end -desc "Build and publish to GitHub Pages" +desc "Clean, build and publish to GitHub Pages" task deploy: [:clean, :publish] -desc "Clean build directory" +desc "Build middleman static site" task :build do puts "Build site into build/ directory, print any errors" system("bundle exec middleman build --verbose") end -desc "Detele the build directory" +desc "Delete build directory" task :clean do puts "Cleaning build/ directory" system("rm -rf build/")