fixed create action to publish correctly