add consensus to docs #33
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 and deploy MkDocs to GitHub Pages | |
| on: | |
| pull_request: | |
| # Test build for PRs targeting default branch | |
| branches: | |
| - native | |
| push: | |
| # Deploy on push to default branch | |
| branches: | |
| - native | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r docs/requirements.txt | |
| - name: Build MkDocs site (strict) | |
| # Test build on PR to native branch | |
| if: github.event_name == 'pull_request' | |
| run: mkdocs build --strict | |
| - name: Deploy to GitHub Pages | |
| # Deploy on push to native branch | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/native' | |
| run: mkdocs gh-deploy --force |