changed action to use publish_post

This should be the preferred way to do it, as the action should trigger when a scheduled post is published, and if the user checks "publish to discourse" and then updates a previously published post.

NB: Function name "publish_post_to_discourse" may not be ideal