Do the proper command for publish