Skip to content

Commit

Permalink
Update build_documentation.yml
Browse files Browse the repository at this point in the history
Testing documentation building through GitHub workflows.
  • Loading branch information
ptth222 committed Apr 1, 2024
1 parent fa4e18d commit 144a391
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

# Install dependencies
- name: Upgrade pip, install package, install requirements, build docs
run: |
pip install --upgrade pip
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .
if [ -f ./docs/requirements.txt ]; then pip install -r ./docs/requirements.txt; fi
pip install sphinx
sphinx-build docs ./docs/_build/html/
shell: bash

# Create an artifact of the html output.
- uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit 144a391

Please sign in to comment.