Skip to content

Merge pull request #219 from smlx/docs-bitrot #99

Merge pull request #219 from smlx/docs-bitrot

Merge pull request #219 from smlx/docs-bitrot #99

name: User Documentation
on:
pull_request:
push:
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.123.8'
extended: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- run: cd docs && npm install postcss-cli autoprefixer && hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public