ci(builds.sr.ht): do some additional fixes on both config and build script

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-10-07 00:58:45 +08:00
parent a57c035e8e
commit 4551899097
Signed by: ajhalili2006
GPG Key ID: 67BFC91B3DA12BE8
1 changed files with 8 additions and 2 deletions

View File

@ -2,8 +2,10 @@ image: alpine/edge
environment:
FF_ENABLE_COMMIT_DATA: "true"
FF_GENERATE_SOCIAL_CARDS: "true"
SKIP_VENV_SETUP: "true"
packages:
- openssh-client
- rsync
- python3
- py3-pip
- py3-wheel
@ -28,8 +30,12 @@ tasks:
- repo-sync: |
cd web
- build: |
sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true
cd tildeweb && pip3 install -r requirements.txt --user
# https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3
sudo rm /usr/lib/python3*/EXTERNALLY-MANAGED -rfv
cd web
# our build script handles both the install and build stuff itself
export PATH="$PATH:$HOME/.local/bin"
bash ./build.sh
- generate-archive: |