Move the platform checkout and related tasks to deploy.yml
Remove excess whitespace.