Merge pull request #126 from NREL-Distribution-Suites/al/infrasys_v1 #39
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-book | |
| on: | |
| push: | |
| branches: | |
| - main # or your default branch | |
| jobs: | |
| github-pages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install system dependencies (Graphviz) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y graphviz graphviz-dev | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install graphviz pygraphviz | |
| python -m pip install ".[doc]" | |
| pip install jupyter-book~=1.0 ghp-import matplotlib gdmloader | |
| - name: Build the book | |
| run: | | |
| jupyter-book clean docs | |
| jupyter-book build docs | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| ghp-import -n -p -f docs/_build/html |