Skip to content

Commit

Permalink
ci: add pip caching for docs workflow (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksurl committed May 24, 2022
1 parent 56368a7 commit 3e4b269
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
with:
fetch-depth: 0
- name: Install mkdocs
uses: actions/setup-python@v3
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
docs-requirements.txt
run: |
pip install \
mkdocs \
mkdocs-material \
md-toc
pip install -r docs-requirements.txt
- name: Generate docs
run: mkdocs gh-deploy --strict
run: mkdocs gh-deploy --strict
3 changes: 3 additions & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdocs
mkdocs-material
md-toc

0 comments on commit 3e4b269

Please sign in to comment.