Skip to content

init

init #11

Workflow file for this run

# 使用GitHub Actions自动部署Hugo博客
name: Hugo-Build
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.129.0'
extended: false
- name: Hugo Build
run: |
git submodule update --init --remote --merge themes/PaperMod
hugo
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
# cname: pilihu2022.github.io
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
branch: gh-pages
folder: public