MtF-wiki/.github/workflows/test-build.yml

32 lines
743 B
YAML
Raw Normal View History

name: Test Site
on:
pull_request:
paths-ignore:
2022-08-08 21:08:12 +08:00
- .github
- README.md
- LICENSE
jobs:
build-deploy:
runs-on: ubuntu-22.04
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- uses: actions/checkout@v3
with:
submodules: true
2021-11-28 08:45:19 +08:00
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
2022-08-08 21:08:12 +08:00
hugo-version: latest
extended: true
2023-01-20 13:59:27 +08:00
- name: Generated Cache
uses: actions/cache@v3
with:
path: resources/_gen
key: ${{ runner.os }}-generated-${{ hashFiles('**') }}
restore-keys: ${{ runner.os }}-generated
- name: Build
2021-11-28 08:45:19 +08:00
run: hugo --minify