Let $X$, $Y = \mathrm{Spec}(A)$ be Noetherian schemes and $f: X \to Y$ be proper with geometrically integral fibres. I want to show this implies $\mathcal{O}_Y = f_*\mathcal{O}_X$.
My idea was to reduce to $A$ local, use the theorem on formal functions and that the completion is faithfully flat and that for a connected reduced scheme $X$ over an algebraically closed field $k$, one has $H^0(X,\mathcal{O}_X) = k$.
I can show that $H^0(X,\mathcal{O}_X)$ is a finite local $A$-algebra. It probably suffices to show that $H^0(X \times_A A/\mathfrak{m}^n) = A/\mathfrak{m}^n$ (then apply the formal function theorem and the faithful flatness of the completion).