Add h2 fuel cell technology to ReEDS main #1083
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
| # this workflow sets up dependencies, builds the documentation, and updates the gh-pages branch | |
| # the gh-pages branch is what's used for GitHub Pages | |
| name: Documentation | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the "main" branch | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for peaceiris/actions-gh-pages publish to gh-pages. | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 1 | |
| lfs: true | |
| persist-credentials: false | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install \ | |
| pandas \ | |
| argparse \ | |
| sphinx==8.2.3 \ | |
| setuptools==80.9.0 \ | |
| myst-parser==5.1.0 \ | |
| sphinx_rtd_theme==3.1.0 \ | |
| sphinxcontrib-bibtex==2.7.0 \ | |
| sphinx_design==0.7.0 | |
| - name: Build Sphinx documentation | |
| env: | |
| GAMSLICE: ${{ secrets.GAMSLICE }} | |
| run: sphinx-build docs/source docs/build/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/build |