Restructure the CI script for the improved work flow.