Skip to content

Commit f85149e

Browse files
committed
feat: ドキュメントビルドプロセスを簡素化し、仮想環境のキャッシュを削除
1 parent 01af085 commit f85149e

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/document.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,16 @@ jobs:
3535
with:
3636
python-version: 3.12
3737

38-
- name: Cache virtual environment
39-
id: cached-virtualenv
40-
uses: actions/cache@v4
41-
with:
42-
path: .venv
43-
key: ${{ runner.os }}-venv-${{ hashFiles('**/uv.lock') }}
38+
- name: Install uv
39+
uses: astral-sh/setup-uv@v6
4440

4541
- name: Install dependencies
46-
if: steps.cached-virtualenv.outputs.cache-hit != 'true'
47-
run: |
48-
python -m venv .venv
49-
source .venv/bin/activate
50-
pip install --upgrade pip
51-
pip install uv
52-
uv sync
42+
run: uv sync --dev
5343

5444
- name: Build documentation
5545
run: |
56-
source .venv/bin/activate
5746
cd docs
58-
python build.py
47+
uv run python build.py
5948
6049
- name: Redirect to the en documentation
6150
run: |

0 commit comments

Comments
 (0)