Skip to content

Merge pull request #12 from NREL/phev-doc-update #7

Merge pull request #12 from NREL/phev-doc-update

Merge pull request #12 from NREL/phev-doc-update #7

Workflow file for this run

name: deploy-docs
on:
push:
branches:
- main
paths:
- docs/**
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install ".[dev]"
# Build the book
- name: Build the book
working-directory: ${{runner.workspace}}/routee-powertrain/docs/
run: |
jupyter-book build .
# 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