publish flow