ctx build: add a new option `publish` to determine whether built files should be published to cortex server