Take a look at this post. I have in there some pretty easy setup of publishing a page. What it looks like in your example is you're trying to apply workflow before the document is created.
The simple approach is like so (don't check for workflow):
postNode.Publish(); // automatically sets it to the last publish step in the work flow