How to Create and Publish an Event.