Refactored publishing in Build.scala
Merge pull request #646 from lossyrob/build-publish-refactor

Refactored publishing in Build.scala