hugo-book/.github/workflows/main.yml
Shohei Ueda f66a45df04
Improve GitHub Actions workflow (#289)
- Use the strategy.matrix syntax
- Use peaceiris/actions-hugo: https://github.com/peaceiris/actions-hugo
2020-11-14 21:40:00 +01:00

25 lines
483 B
YAML

name: Build with Hugo
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
hugo-version:
- 'latest'
- '0.68.0'
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ matrix.hugo-version }}
extended: true
- name: Run Hugo
working-directory: exampleSite
run: hugo --themesDir ../..