Azure Static Web Apps are free, so why not use them? This site is hosted on it, and it literally costs me zero money. Let’s go!
What you need
- A GitHub account
- An Azure account
Steps
- If you haven’t already, install Git
- Install Hugo
- Create a new Hugo site (locally). Example:
hugo new site mysite
cd mysite
- Create a GitHub repo and commit the site. Example:
|
|
- Create a new Azure Static Web App
- Connect the new GitHub repo to the Azure Static Web App
- (Optional) Configure your custom domain. TLS certificates are also free with Azure Static Web Apps!
As you commit and push changes to the GitHub repo, a GitHub Action will run and automatically build and deploy the site.