We study a topological Abelian gauge theory that generalizes the Abelian Chern-Simons one, and that leads in a natural way to the Milnors link invariant $bar{mu}(1,2,3)$ when the classical action on-shell is calculated.