I can say what not to do: never do something to undermine or expose your boss no matter how incompetent he is.
Personally I let my boss take all credit for my work (not really, just make everything I can in order to get him promoted). When he gets promoted he is likely to carry me up with him (if not I'm working for the wrong boss). It paid out several times.