Split up the build and publish scripts.