better build and publish pages

- telling user if publish was successful