add special note #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build GH-Pages #you can be named what you want | |
on: | |
push: | |
paths-ignore: | |
- 'images/**' | |
- 'LICENSE' | |
- 'README.md' | |
branches: | |
- main | |
workflow_dispatch: | |
# manual run | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Get Theme | |
run: git submodule update --init --recursive | |
- name: Update theme to Latest commit | |
run: git submodule update --remote --merge | |
- name: Setup hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
- name: Build | |
run: hugo --gc --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs | |
commit_message: ${{ github.event.head_commit.message }} |