Former League of Ireland goalkeeper Gerard Doherty played his first GAA game in 30 years as he helped one Derry club reach a county final.