Skip to content

Commit 3bdc7f7

Browse files
walterclaude
authored andcommitted
修复 GitHub Actions Pages 部署:setup-python 指定 cache 路径
setup-python 的 cache: pip 默认查找 requirements.txt / pyproject.toml, 我们用的是 requirements-docs.txt,需要显式指定 cache-dependency-path, 否则会报 "No file matched to [**/requirements.txt or **/pyproject.toml]" 导致 build 失败。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ec0a8b9 commit 3bdc7f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
python-version: "3.13"
2828
cache: pip
29+
cache-dependency-path: requirements-docs.txt
2930
- run: pip install -r requirements-docs.txt
3031
- run: mkdocs build
3132
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)