Export to Drupal is performed by publishing destination.
You need to create a pubDests template, which executes a workflow with a code activity that converts a GN4 object to a Drupal node and then exports data through a XML-RPC call (HTTP-POST request).
See Drupal publishing template for an example.