This is basic automation and a pretty weird deployment process that could literally be a proper ci/cd pipeline.