Automate test website building
This commit is contained in:
parent
69e72bd144
commit
f1da50a4cd
|
@ -0,0 +1,24 @@
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
hugo-version:
|
||||||
|
- 'latest'
|
||||||
|
- '0.65.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 ../..
|
Loading…
Reference in New Issue