The "g" is pronounced in the case of syllable separation. You can verify the transcription of the pronunciation with the link to Cambridge Dictionary.