Update publish_to_pypi.yaml #53
This file contains 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: Publish Documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python - | |
export PATH="$HOME/.poetry/bin:$PATH" | |
poetry --version | |
- name: Install Dependencies and Build Documentation | |
run: | | |
sudo apt-get install graphviz graphviz-dev | |
poetry install -E docs | |
cd docs | |
poetry run make html | |
env: | |
POETRY_VIRTUALENVS_IN_PROJECT: true | |
- name: Deploy documentation. | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/github-pages-deploy-action@v4.3.0 | |
with: | |
branch: gh-pages | |
force: true | |
folder: docs/_build/html |