Update action to build document #2
This file contains hidden or 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: Build design document | ||
| run-name: ${{ github.actor }} building the Phlex design document 🚀 | ||
| on: | ||
| push: | ||
| paths: | ||
| - 'doc/**' | ||
| workflow_dispatch: # Allow manual triggering | ||
| jobs: | ||
| Build-Design-Document-Actions: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out repository code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.12" | ||
| cache: "pip" | ||
| - name: Install sphinx-build tool | ||
| run: | | ||
| python -m venv .venv | ||
| . .venv/bin/activate | ||
| python -m pip install --upgrade pip | ||
| pip install -U sphinx | ||
| - name: Build document | ||
| working-directory: ./doc | ||
| run: make html latexpdf | ||
| - run: echo "Build status: ${{ job.status }}"" | ||