Added release publish workflow and fixed a resource copy bug