diff --git a/lib/middleman-deploy/commands.rb b/lib/middleman-deploy/commands.rb index 9b17a83..850c28a 100644 --- a/lib/middleman-deploy/commands.rb +++ b/lib/middleman-deploy/commands.rb @@ -36,8 +36,7 @@ module Middleman end if build_before # http://forum.middlemanapp.com/t/problem-with-the-build-task-in-an-extension - builder = ::Middleman::Cli::Build.new(args=[], options={:instrument=>false}) - builder.build + run("middleman build") || exit(1) end send("deploy_#{self.deploy_options.method}") end