[fix]theme load err #80
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: Deploy Hugo | |
on: | |
push: | |
branches: | |
[main] # 主分支源代码新触发 | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: latest | |
extended: true | |
- name: Build | |
run: hugo | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.PRESONAL_TOKEN }} # TOKEN 这里新建一个 https://github.com/settings/tokens | |
PUBLISH_BRANCH: gh-pages # 推送到当前 gh-pages 分支 | |
PUBLISH_DIR: ./public # hugo 生成到 public 作为跟目录 | |
commit_message: ${{ github.event.head_commit.message }} |