finalize method of publish artifacts