Hi,
Maybe you can improve this publish settings with:
Publish delete directory
You have to delete/empty always the files at the publish directory.
Is you don't delete/empty the publish directory before generating the new generated files doesn't work.
Regards,