appleboy/ssh-action's script parameter doesn't set SSH_ORIGINAL_COMMAND, which deploy.sh needs. Using raw ssh with the command as an argument works correctly.