ci: add venv caching to speed up doc deployments
All checks were successful
Deploy Documentation / build-and-deploy (push) Successful in 45s
All checks were successful
Deploy Documentation / build-and-deploy (push) Successful in 45s
This commit is contained in:
parent
5ed943a4dc
commit
281175e2cd
1 changed files with 15 additions and 1 deletions
|
|
@ -17,11 +17,25 @@ jobs:
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y python3 python3-pip python3-venv graphviz
|
apt-get install -y python3 python3-pip python3-venv graphviz
|
||||||
|
|
||||||
- name: Install Python Requirements & Compile Docs
|
- name: Cache Python Virtual Environment
|
||||||
|
id: cache-venv
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: venv
|
||||||
|
key: ${{ runner.os }}-venv-${{ hashFiles('requirements.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-venv-
|
||||||
|
|
||||||
|
- name: Install Python Requirements
|
||||||
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Compile Docs
|
||||||
|
run: |
|
||||||
|
. venv/bin/activate
|
||||||
python3 build_docs.py
|
python3 build_docs.py
|
||||||
|
|
||||||
- name: gh-pages 브랜치로 site/ 배포
|
- name: gh-pages 브랜치로 site/ 배포
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue