Skip to content

Commit

Permalink
Adding rake task for doc deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Thomas <[email protected]>
  • Loading branch information
Seth Thomas committed Nov 2, 2018
1 parent d82db11 commit fcd7151
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,12 @@ rescue LoadError
puts "github_changelog_generator is not available." \
" (sudo) gem install github_changelog_generator to generate changelogs"
end

namespace :docs do
desc "Deploy docs"
task :deploy do
sh "cd docs && hugo"
sh "aws --profile chef-cd s3 sync docs/public s3://test-kitchen-legacy.cd.chef.co --delete --acl public-read"
sh "aws --profile chef-cd cloudfront create-invalidation --distribution-id EQD8MRW086SRT --paths '/*'"
end
end

0 comments on commit fcd7151

Please sign in to comment.