Revert "Always use master to deploy"

This reverts commit 1526d6d8dcbbf4e5c54306dbff0cabefce26dd1b.