finish and publish post