2019-09-05 21:44:19 +00:00
|
|
|
name: Build with Hugo
|
2019-08-22 20:46:28 +00:00
|
|
|
|
2020-11-14 20:40:00 +00:00
|
|
|
on: [push, pull_request]
|
2019-08-22 20:46:28 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-11-14 20:40:00 +00:00
|
|
|
build:
|
2019-08-22 21:07:54 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-14 20:40:00 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
hugo-version:
|
|
|
|
- 'latest'
|
2022-11-02 23:11:38 +00:00
|
|
|
- '0.79.0'
|
2019-08-22 20:46:28 +00:00
|
|
|
steps:
|
2023-08-08 11:08:03 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
2019-08-22 21:01:33 +00:00
|
|
|
|
2020-11-14 20:40:00 +00:00
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: ${{ matrix.hugo-version }}
|
|
|
|
extended: true
|
2020-02-29 23:35:10 +00:00
|
|
|
|
|
|
|
- name: Run Hugo
|
|
|
|
working-directory: exampleSite
|
|
|
|
run: hugo --themesDir ../..
|
2023-08-08 11:08:03 +00:00
|
|
|
|
|
|
|
# - name: Deploy
|
|
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
|
|
# with:
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# publish_dir: ./public
|
|
|
|
|