Fixed publish-snapshot task