Add test build for exampleSite #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate test site to ensure it works | |
on: | |
push: | |
branches: | |
- master | |
- feature/* | |
- bugfix/* | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 0.121.2 | |
extended: true | |
- name: Build | |
run: | | |
cd exampleSite | |
# install PaperMod theme | |
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod | |
# install PaperMod-bookshelf theme | |
ln -s ../ themes/PaperMod-bookshelf | |
hugo --minify |