Skip to content

主题切换到FixIt #347

主题切换到FixIt

主题切换到FixIt #347

Workflow file for this run

name: hugo push to github pages
on:
push:
branches:
- blog
jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
extended: true
- name: Build
run: HUGO_ENV=production hugo --gc --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./public