Automate test website building

This commit is contained in:
Wen-We Tseng 2020-12-03 17:26:31 +08:00
parent 69e72bd144
commit f1da50a4cd
1 changed files with 24 additions and 0 deletions

24
.github/workflows/test.yml vendored Normal file
View File

@ -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 ../..