Cleanup publish command