add publish method and use it in workflow
fix publish