fix(build): correct Python command invocations for build

Updated the build script to use `python3` and `pip3` commands, ensuring compatibility with environments where Python 2 might be the default. Also added `--break-system-packages` flag to `pip3` install to handle specific package installations without breaking the environment.
This commit is contained in:
Kumi 2024-07-01 10:04:05 +02:00
parent 7d23e465e2
commit 61ccd25ab5
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -17,11 +17,11 @@ jobs:
run: | run: |
apt update apt update
apt install -y python3 python3-pip apt install -y python3 python3-pip
python -m pip install --upgrade pip python3 -m pip install --upgrade pip
pip install -r requirements.txt pip3 install -r requirements.txt --break-system-packages
- name: Generate static site - name: Generate static site
run: python main.py run: python3 main.py
- name: Deploy to pages branch - name: Deploy to pages branch
run: | run: |