From 970135a39d9c21d77f5d462f478c1ec7c532ca6a Mon Sep 17 00:00:00 2001 From: lichenblankie Date: Tue, 28 Apr 2026 07:45:03 +0000 Subject: [PATCH] Fix workflow: use apt-get for Python instead of setup-python action --- .forgejo/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 574f745..dcfe00e 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -13,9 +13,10 @@ jobs: uses: https://code.forgejo.org/actions/checkout@v4 - name: Set up Python - uses: https://code.forgejo.org/actions/setup-python@v5 - with: - python-version: '3.11' + run: | + apt-get update && apt-get install -y python3 python3-pip python3-venv + pip3 install -r requirements.txt + pip3 install pyinstaller - name: Install dependencies run: | @@ -78,9 +79,6 @@ jobs: } } EOF - # Restart docker to pick up new config - pkill dockerd || true - sleep 2 # Build with buildkit DOCKER_BUILDKIT=1 docker build --network=host -t registry.derickphan.com/tinyweb:$TAG . docker push registry.derickphan.com/tinyweb:$TAG