You pretty much answered your own question.
Do note that the game does not detect Immolation's deactivation from lack of mana as an issued order. (only manual deactivate counts.) As such, you will periodically need to check for the immolation buff and remove the invisibility accordingly.
Also, The ghost ability will keep a unit invisible even if it attacks or uses abilities.