2019-09-05 23:44:19 +02:00
|
|
|
name: Build with Hugo
|
2019-08-22 22:46:28 +02:00
|
|
|
|
2020-11-14 21:40:00 +01:00
|
|
|
on: [push, pull_request]
|
2019-08-22 22:46:28 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-11-14 21:40:00 +01:00
|
|
|
build:
|
2019-08-22 23:07:54 +02:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-14 21:40:00 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
hugo-version:
|
|
|
|
- 'latest'
|
2022-11-03 00:11:38 +01:00
|
|
|
- '0.79.0'
|
2019-08-22 22:46:28 +02:00
|
|
|
steps:
|
2020-11-14 21:40:00 +01:00
|
|
|
- uses: actions/checkout@v2
|
2019-08-22 23:01:33 +02:00
|
|
|
|
2020-11-14 21:40:00 +01:00
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: ${{ matrix.hugo-version }}
|
|
|
|
extended: true
|
2020-03-01 00:35:10 +01:00
|
|
|
|
|
|
|
- name: Run Hugo
|
|
|
|
working-directory: exampleSite
|
|
|
|
run: hugo --themesDir ../..
|