You can insert a code snippet in order to publish a PowerBI workbook onto a website.
Start by navigating to PowerBI online once you have published your report.
Select File>Embed report>Website or portal

Select the HTML code:

Get ready to publish - get the link as below
It should look like below when you choose to embed HTML & you're done!

Success!