Artifacts API doesn't exist in Prefect 2 yet but we are aware that some users would like to see a similar feature and we'll let you know once we know more about how we could satisfy that request
For now, I'd recommend storing the HTML file generated from profiling on S3 and logging the S3 object name which makes it easy to get from the flow run to the artifact