diff --git a/deliver/lib/deliver/html_generator.rb b/deliver/lib/deliver/html_generator.rb
index <HASH>..<HASH> 100644
--- a/deliver/lib/deliver/html_generator.rb
+++ b/deliver/lib/deliver/html_generator.rb
@@ -9,7 +9,8 @@ module Deliver
 
     def run(options, screenshots)
       begin
-        html_path = self.render(options, screenshots, '.')
+        fastlane_path = FastlaneCore::FastlaneFolder.path
+        html_path = self.render(options, screenshots, fastlane_path)
       rescue => ex
         UI.error(ex.inspect)
         UI.error(ex.backtrace.join("\n"))
[deliver] generate Preview.html file in fastlane directory like gitignore suggests (#<I>)