We consider a lattice implementation of the η-invariant, using the complex phase of the determinant of the simplified domain-wall fermion which couples to an interpolating five-dimensional gauge field. We clarify the relation to the effective action for chiral Ginsparg-Wilson fermions. A lattice expression for the five-dimensional Chern-Simons term is obtained.