Bug fixes for copying and release publish workflow