Adding logic to handle the deploy_product workflow

This should fix #199

@dearmond - can you try pulling this branch and see if it fixes the issue for you?