Skip to content

repo and local build system cleanup #101

repo and local build system cleanup

repo and local build system cleanup #101

name: Preview documentation build
on:
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
concurrency: preview-${{ github.ref }}
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: make install
- name: Generate web-based documentation
run: |
make clean
mkdir -p docs
touch docs/.nojekyll
make gendoc
poetry run mkdocs build -d site
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: site/
preview-branch: gh-pages