@@ -31,41 +31,47 @@ jobs:
3131 - name : Set up Python
3232 uses : actions/setup-python@v5
3333 with :
34- python-version : 3.11
34+ python-version : 3.10
3535
36- # 3. Pip 캐시 설정 (빌드 속도 향상)
36+ # 3. uv 설치
37+ - name : Install uv
38+ uses : astral-sh/setup-uv@v4
39+ with :
40+ version : " latest"
41+
42+ # 4. uv 캐시 설정 (빌드 속도 향상)
3743 - name : Cache dependencies
3844 uses : actions/cache@v4
3945 with :
40- path : ~/.cache/pip
41- key : ${{ runner.os }}-pip -${{ hashFiles('**/requirements.txt ') }}
46+ path : ~/.cache/uv
47+ key : ${{ runner.os }}-uv -${{ hashFiles('**/pyproject.toml ') }}
4248 restore-keys : |
43- ${{ runner.os }}-pip -
49+ ${{ runner.os }}-uv -
4450
45- # 4 . 의존성 라이브러리 설치
51+ # 5 . 의존성 라이브러리 설치
4652 - name : Install dependencies
47- run : pip install -r requirements.txt
53+ run : uv sync
4854
49- # 5 . MkDocs 빌드 (영어, 한국어 버전 순차 실행)
55+ # 6 . MkDocs 빌드 (영어, 한국어 버전 순차 실행)
5056 # 이 부분이 핵심입니다. 두 개의 설정 파일을 모두 사용하여 빌드합니다.
5157 - name : Build MkDocs site
5258 run : |
5359 mkdocs build --config-file mkdocs.en.yml
5460 mkdocs build --config-file mkdocs.ko.yml
5561
56- # 6 . (선택사항) 루트 경로 리디렉션 페이지 생성
62+ # 7 . (선택사항) 루트 경로 리디렉션 페이지 생성
5763 # 사용자가 사이트 루트(/)로 접속했을 때 기본 언어(예: 영어)로 자동 이동시킵니다.
5864 - name : Create redirect page
5965 run : |
6066 echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=./en/"></head><body></body></html>' > site/index.html
6167
62- # 7 . 빌드 결과물(site 폴더)을 아티팩트로 업로드
68+ # 8 . 빌드 결과물(site 폴더)을 아티팩트로 업로드
6369 - name : Upload GitHub Pages artifact
6470 uses : actions/upload-pages-artifact@v3
6571 with :
6672 path : ./site
6773
68- # 8 . 아티팩트를 GitHub Pages에 배포
74+ # 9 . 아티팩트를 GitHub Pages에 배포
6975 - name : Deploy to GitHub Pages
7076 id : deployment
7177 uses : actions/deploy-pages@v4
0 commit comments