hugo-book/.github/workflows/main.yml

35 lines
814 B
YAML
Raw Normal View History

2019-09-05 21:44:19 +00:00
name: Build with Hugo
2019-08-22 20:46:28 +00:00
on: [push, pull_request]
2019-08-22 20:46:28 +00:00
jobs:
build:
2019-08-22 21:07:54 +00:00
runs-on: ubuntu-latest
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:
- 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
- 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 ../..
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public