How to Setup Blog
I choose to use hugo and github page for blog hosting, before that I also tried to self-hosted way, during the university I also posted on some hosting sites such as https://www.iteye.com/blog/user/zealove.
The basic process can be done from these two introductory articles, through github action can achieve the whole automatic release, very convenient.
- https://gohugo.io/getting-started/quick-start/
- https://gohugo.io/hosting-and-deployment/hosting-on-github/
Cautions
- in addition to the edit branch, select a release branch, the default is gh-pages, hugo build directory will be committed to the release branch of things
- the secret GITHUB_TOKEN in the action file, do not change it, newbies like me may think to add their own token, but in fact do not need