mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
ci: add pip caching for docs workflow (#1292)
This commit is contained in:
parent
56368a7207
commit
3e4b26957d
2 changed files with 11 additions and 5 deletions
13
.github/workflows/publish-docs.yml
vendored
13
.github/workflows/publish-docs.yml
vendored
|
@ -18,10 +18,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install mkdocs
|
- name: Install mkdocs
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: |
|
||||||
|
docs-requirements.txt
|
||||||
run: |
|
run: |
|
||||||
pip install \
|
pip install -r docs-requirements.txt
|
||||||
mkdocs \
|
|
||||||
mkdocs-material \
|
|
||||||
md-toc
|
|
||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
run: mkdocs gh-deploy --strict
|
run: mkdocs gh-deploy --strict
|
||||||
|
|
3
docs-requirements.txt
Normal file
3
docs-requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
mkdocs
|
||||||
|
mkdocs-material
|
||||||
|
md-toc
|
Loading…
Add table
Add a link
Reference in a new issue