From 7c1143befc6b9af5191ff592de690296ca68ca20 Mon Sep 17 00:00:00 2001 From: Tolaria Date: Wed, 3 Jun 2026 18:17:17 +0800 Subject: [PATCH] fix: use venv for pip install to avoid externally-managed-environment --- .forgejo/workflows/docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/docs.yml b/.forgejo/workflows/docs.yml index 965d3a1..488acd0 100644 --- a/.forgejo/workflows/docs.yml +++ b/.forgejo/workflows/docs.yml @@ -12,11 +12,15 @@ jobs: fetch-depth: 0 - run: | - apt-get update && apt-get install -y python3 python3-pip + apt-get update && apt-get install -y python3 python3-pip python3-venv + python3 -m venv /tmp/venv + . /tmp/venv/bin/activate python3 --version pip3 install zensical - - run: zensical build --clean + - run: | + . /tmp/venv/bin/activate + zensical build --clean - name: Deploy to pages branch run: |