You can quickly get started with a deployed site on github by forking one of the example sites:
Go to the github repo of the example/theme tryout and click fork:
In your own (forked) repo, go to the Actions section, then enable workflows:
go to the Actions section. If the workflow has a manual run button, run it: - this creates the gh-pages branch which is needed to enable github pages. You can also trigger a build by pushing to the repo.
Go to settings/pages and choose “deploy from branch”. To be able to do so, the gh-pages branch must have been created beforehand. (This can either be done manually or simply by waiting for the first workflow run to complete.)
After this, the page should start to build. To check this, go to the gh actions page. You should see the first page deployment in progress:
git clone ….
See Installation | Hugo: https://gohugo.io/installation/
cd into your local copy and run
hugo server
Have fun!