Merge pull request #386 from NREL/rjf/extend-graph #61
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: Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - docs/** | |
| - .github/workflows/deploy-docs.yaml | |
| jobs: | |
| deploy-docs: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| python-version: "3.11" | |
| - name: Install package | |
| run: | | |
| conda install -c conda-forge osmnx | |
| pip install ".[all]" | |
| - name: Build book | |
| working-directory: ${{runner.workspace}}/routee-compass/docs/ | |
| run: | | |
| python examples/_convert_examples_to_notebooks.py | |
| jupyter-book build . | |
| - name: Checkout benchmark results | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: bench | |
| path: bench_checkout | |
| - name: Move benchmark results to build folder | |
| run: mv bench_checkout/dev ./docs/_build/html | |
| # Push the book's HTML to github-pages | |
| - name: GitHub Pages action | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/_build/html |