v2.5.0 (#329) #70
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: Deploy to GitHub Pages | |
| # The site is now a single MkDocs build: marketing landing at /, docs at | |
| # /docs/, About at /about/. The legacy website/ directory has been | |
| # subsumed into docs/ (CNAME, _headers, robots.txt, llms.txt all live | |
| # under docs/ now and get copied to site/ verbatim by mkdocs), so this | |
| # workflow just builds MkDocs and uploads site/ directly — no more | |
| # shuffling artifacts between website/ and site/. | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'docs/**' | |
| - 'overrides/**' | |
| - 'mkdocs.yml' | |
| - '.github/requirements-docs.txt' | |
| - '.github/workflows/pages.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| cache-dependency-path: .github/requirements-docs.txt | |
| - name: Install MkDocs Material | |
| run: pip install -r .github/requirements-docs.txt | |
| - name: Build site (MkDocs) | |
| run: mkdocs build --strict | |
| - uses: actions/configure-pages@v4 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |