Deploy shouldn't be triggered on forks.
So, I extracted it to a separate script, that can check preconditions