code: def publish(self, **kwargs):
          
          if self._dxid is not None:
              return dxpy.api.global_workflow_publish(self._dxid, **kwargs)
          else:
              return dxpy.api.global_workflow_publish('globalworkflow-' + self._name, alias=self._alias, **kwargs)
docs: Publishes the global workflow, so all users can find it and use it on the platform.
  
          The current user must be a developer of the workflow.