Build hugo Static blog (Deployment)
1. Ready
2. Create repository and environments
-
‘Create a new repository’ in GitHub
- name:
yourusername.github.com
- name:
-
Create Token
- usr-setting-Develop Settings-Personal access tokens
- set Expiration never
- check
repo
andworkflow
-
Link Token to
repository
- Open repository - setting - Actions secrets and variables
- New secrets. name: TOKEN
3. Create a workflow
- Create ‘.github/workflows/hugo_de.yaml ‘in sequence inside the your-blog-site directory
|
|
This automator publishes your locally undeployed files to the dev branch, and the Action is automatically deployed to the main branch
4. Deploy to GitHub
- In the home directory, type:
|
|
- Set GitHub Page
- repository-setting-general-Default branch:
main
- repository-setting-page-Deploy from a branch:
main
- repository-setting-general-Default branch: