Create a false public image. Be deceptive. Hide one’s feelings especially sadness or anger. The phrase suggests that you are hiding one’s emotions but not for ill will or personal gain, but for the good morale of those around you.
“She acts happy, but I know she’s putting up a good front since her husband died.”