minor bug fixes in deployment #136
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 MkDocs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: # to enable manual triggers | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| pip install mkdocs mkdocs-material "mkdocstrings[python]" mkdocs-exclude | |
| - name: Install build dependencies | |
| run: | | |
| pip install build scikit-build cmake ninja "pybind11[global]" | |
| - name: Build and install the package | |
| run: | | |
| python -m pip install . | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| mkdocs gh-deploy --force |