fix publish API usage
Merge pull request #297 from bclermont/diskspace-publish-fix

fix publish API usage