I am creating an html file in a workflow.
When I run the workflow in studio I can see the file generated.
However, If I publish this package and run the process the Orchestrator I do not see the html file created.
Your workflow is generating the sample.html file in a relative path. This means that when you run it from Orchestrator the Robot it connects to (eg, your Attended robot) has the package deployed and it is then generating the file relative from that deployed location.