You can use something like org-publish, ox-hugo, or firn for this.
I have notes on how I publish with org-publish here: