Publish version only after all files are uploaded

There is a 'publish' step at the end, better to let everything get
published then, instead of directly. If the script crashes or is
interrupted, the update site won't be incomplete.

As it is now, the publishing step is redundant.