working publish workflow