move upload files to deploy phase