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

35 lines
814 B
YAML
Raw Normal View History

2019-09-05 23:44:19 +02:00
name: Build with Hugo
2019-08-22 22:46:28 +02:00
on: [push, pull_request]
2019-08-22 22:46:28 +02:00
jobs:
build:
2019-08-22 23:07:54 +02:00
runs-on: ubuntu-latest
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:
- 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 23:01:33 +02: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