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:
|
2024-01-10 12:40:24 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-08 13:08:03 +02:00
|
|
|
with:
|
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
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 ../..
|
2023-08-08 13:08:03 +02:00
|
|
|
|
|
|
|
# - name: Deploy
|
|
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
|
|
# with:
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# publish_dir: ./public
|
|
|
|
|