Skip to content

docs(readme): Clarify README, add screenshots #8

docs(readme): Clarify README, add screenshots

docs(readme): Clarify README, add screenshots #8

name: Generate test site to ensure it works
on:
push:
branches:
- main
- feature/*
- bugfix/*
jobs:
build-exampleSite:
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: Test if exmapleSite can be built
run: |
cd exampleSite
# install PaperMod theme
git clone --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
# install PaperMod-bookshelf theme
ln -s ../ themes/PaperMod-bookshelf
hugo --minify
# clean up
rm -rf themes/*
- name: Bump version and push tag
if: github.ref == 'refs/heads/main'
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create normal GitHub release
if: github.ref == 'refs/heads/main' && github.event_name != 'schedule'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}