~mrls/www

ref: e8be163d721d6951b0e73912058d074b9e0d97ef www/Rakefile -rw-r--r-- 434 bytes View raw
e8be163dMauro Morales Add post "the most beautiful lake in the world" 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

require 'html-proofer'

desc 'Build the site'
task :build do
  sh 'jekyll', 'build'
end

desc 'Run the tests'
task :test do
  Rake::Task[:build].execute
  options = {
    assume_extension: true,
    cache: { timeframe: '30d' }

  }
  HTMLProofer.check_directory('./_site', options).run
end

desc 'Deploy'
task :deploy do
  Rake::Task[:test].execute
  sh "rsync -avz --delete _site/* #{ENV['DEST']}"
end