Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 9592597

Browse files
committed
fix(ci): install local packages before mkdocs build
because now mkdocs needs to read metadata from pems_data
1 parent eb583fa commit 9592597

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/mkdocs.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ jobs:
3636
with:
3737
python-version-file: .github/workflows/.python-version
3838
cache: pip
39-
cache-dependency-path: "docs/requirements.txt"
39+
cache-dependency-path: |
40+
"**/pyproject.toml"
41+
"docs/requirements.txt"
4042
4143
- name: Build MkDocs website
4244
run: |
43-
pip install -r docs/requirements.txt
45+
pip install ./pems_data -r docs/requirements.txt
4446
mkdocs build
4547
4648
- name: Install Netlify CLI
@@ -87,6 +89,18 @@ jobs:
8789
- name: Checkout
8890
uses: actions/checkout@v4
8991

92+
- uses: actions/setup-python@v5
93+
with:
94+
python-version-file: .github/workflows/.python-version
95+
cache: pip
96+
cache-dependency-path: |
97+
"**/pyproject.toml"
98+
"docs/requirements.txt"
99+
100+
- name: Install local pacakges
101+
run: |
102+
pip install ./pems_data
103+
90104
- name: Deploy docs
91105
uses: mhausenblas/mkdocs-deploy-gh-pages@master
92106
env:

0 commit comments

Comments
 (0)