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.
Merge pull request #6 from vladdu/publish_last

Publish version only after all files are uploaded