mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-12-01 07:25:51 +00:00
f66a45df04
- Use the strategy.matrix syntax - Use peaceiris/actions-hugo: https://github.com/peaceiris/actions-hugo
25 lines
483 B
YAML
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 ../..
|