Proof (one-tailed z-test is UMP)
The z-test refers to rejecting $H_0$ if $$ \begin{align*} Z := \frac{\sqrt{n}(\overline{X} - μ_0)}{σ} > z_α \end{align*} $$ where $z_α$ is the upper $α$ quantile of $N(0,1)$.
z-test has size $α$
The power function of the test $$ \begin{align*} β(T, μ) ={}& \prob_μ(Z>z_α) \\ ={}& \prob_μ\Bigl(\underbrace{\frac{\sqrt{n}(\overline{X} - μ)}{σ}}_{\sim N(0,1) \text{ under }μ} > z_α + \frac{\sqrt{n}(μ_0 - μ)}{σ}\Bigr) \\ ={}& 1 - Φ\left(z_α + \frac{\sqrt{n}(μ_0 - μ)}{σ}\right) \end{align*} $$ (where $Φ$ is the cumulative distribution function of $N(0,1)$) is an increasing function of $μ$. Therefore the size of the test is $$ \begin{align*} \sup_{μ\leq μ_0} β(T, μ) = β(T, μ_0) = α. \end{align*} $$
z-test is more powerful
Let $\tilde T$ be a test of size at most $α$, i.e. $\sup_{μ\leq μ_0} β(\tilde T, μ) \leq α$.
Viewed as a test for $H_0: μ=μ_0$ against $H_1: μ=μ_1$ where $μ_1 > μ_0$, the size $\tilde T$ is now $β(\tilde T, μ_0) \leq α$. Therefore since the $z$-test is uniformly most powerful here, $$ \begin{align*} β(T, μ_1) \geq β(T,μ_0). \end{align*} $$ This holds for any $μ_1>μ_0$.
Therefore the z-test is uniformly most powerful for testing $H_0: μ\leq μ_0$ against $H_1: μ>μ_0$.