Skip to content

Commit 9522606

Browse files
committed
deploy(docs): Fix documentation deployment
There are more dependencies for documentation generation now, We can't run "pipx run" anymore, we need to install all required dependencies.
1 parent 8273774 commit 9522606

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.github/workflows/documentation.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,38 @@ jobs:
1818
with:
1919
python-version: 3.8
2020

21-
- name: Restore pipx cache
21+
- name: Setup Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.8
25+
26+
- name: Restore pip cache
2227
uses: actions/cache@v2
2328
with:
24-
path: ~/.local/pipx
25-
key: pipx-cache
29+
path: ~/.cache/pip
30+
key: pip-3.8
31+
32+
- name: Upgrade pip and install poetry
33+
run: python -m pip install --upgrade pip poetry
34+
shell: bash
35+
36+
- name: Restore poetry cache
37+
uses: actions/cache@v2
38+
with:
39+
path: |
40+
~/.cache/pypoetry/cache
41+
~/.cache/pypoetry/artifacts
42+
key: poetry-cache-and-artifacts-3.8
43+
44+
- name: Restore virtualenvs
45+
uses: actions/cache@v2
46+
with:
47+
path: ~/.cache/pypoetry/virtualenvs
48+
key: venv-${{ hashFiles('poetry.lock') }}-3.8
49+
50+
- name: Poetry install
51+
run: poetry install --only docs
52+
shell: bash
2653

27-
- run: pipx run --spec "mkdocs-material==8.5.10" mkdocs gh-deploy --force
54+
- name: Generate documentation
55+
run: poetry run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)