Skip to content

update hugo version #22

update hugo version

update hugo version #22

Workflow file for this run

name: Build and Deploy Hugo Site
on:
push:
branches:
- main # 或您用于存储 Hugo 源文件的分支
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true # 如果您的 Hugo 网站使用了 git 子模块
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: ./public
cname: www.voidmu.com