Skip to content
name: Pull Request Hugo Build Check
on:
pull_request:
branches:
- master # when the PR destination is master, executed this workflow
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.52'
- name: Build
run: |
cd docs
hugo