From 281175e2cde35f303003595af1bb520c2b88a4c8 Mon Sep 17 00:00:00 2001 From: ignis Date: Mon, 1 Jun 2026 12:42:58 +0000 Subject: [PATCH] ci: add venv caching to speed up doc deployments --- .forgejo/workflows/deploy-docs.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy-docs.yml b/.forgejo/workflows/deploy-docs.yml index eff8fc0..c222040 100644 --- a/.forgejo/workflows/deploy-docs.yml +++ b/.forgejo/workflows/deploy-docs.yml @@ -17,11 +17,25 @@ jobs: apt-get update 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: | python3 -m venv venv . venv/bin/activate pip install -r requirements.txt + + - name: Compile Docs + run: | + . venv/bin/activate python3 build_docs.py - name: gh-pages 브랜치로 site/ 배포