factored deploy script and added support for both Drone.io and CircleCI