In general, you will have to program the functionality. Whenever you submit your article to your content management system and when the content triggers to go live, thats when you need to write the sitemap entry into the sitemap file. Its a processing of continual appending to a text file.