Skip to content

modified: "content/post/\347\275\221\347\273\234\345\256\211\345\2… #18

modified: "content/post/\347\275\221\347\273\234\345\256\211\345\2…

modified: "content/post/\347\275\221\347\273\234\345\256\211\345\2… #18

Workflow file for this run

name: Deploy Hugo to GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive # 确保主题子模块也被检出
fetch-depth: 0 # 获取所有历史记录
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
extended: true
- name: Build
run: hugo --minify # 添加minify优化输出
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-page