documentation action

This commit is contained in:
jonaswinkler 2021-01-10 00:53:30 +01:00
parent c9ce69c1c1
commit aa1fb63714

View File

@ -7,11 +7,10 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install python version - name: Set up Python
uses: gabrielfalcao/pyenv-action@v7 uses: actions/setup-python@v2
with: with:
default: "3.6.8" python-version: 3.8
command: "pip install -U pip"
- name: Get pip cache dir - name: Get pip cache dir
id: pip-cache id: pip-cache
run: | run: |
@ -21,11 +20,9 @@ jobs:
with: with:
path: ${{ steps.pip-cache.outputs.dir }} path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip3.6.8} key: ${{ runner.os }}-pip3.6.8}
- name: dependencies - name: Install dependencies
# instead of directly installing the dependency in the workflow file, can this be done using the pipfile instead? run: pipenv install --system --dev --ignore-pipfile
run: | - name: Make documentation
pip install 'sphinx~=3.3' sphinx_rtd_theme
- name: make
run: | run: |
cd docs/ cd docs/
make html make html