GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.
I use Github Actions to deploy site source files (eg: hugoBlog source) to GitHub Pages (eg: liugangjian.github.io ) automatically .
My blog project architecture is shown below. In the figure we can clearly see there are three repositories.
- liugangjian.github.io is a public repository which includes the output after build.
- hugoBlog Source is a private repository which contains the source code of the website.
- draw.io is a public repository which saved the pictures used in the article.
In the hugoBlog Source file directory, create a .github/workflows/deploy.yml file, when pushing code to hugoBlog repo, github action will help me to build and deploy the target to liugangjian.github.io
| |
