# Build documentation name: documentation on: push: branches: [ main ] pull_request: branches: [ main ] workflow_dispatch: jobs: documentation: runs-on: ubuntu-latest name: Build documentation steps: - uses: actions/checkout@v2 - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: "3.10" - name: Install poetry run: | python -m pip install --upgrade pip pip install poetry - name: Install package run: poetry install - name: Build documentation run: poetry run make html --directory docs/