Steps to publish doc automatically