update post and publish it