ci: Moved doc setup to separate script (#3339)

Since there seems to be some problem with the doc setup on the GitHub
runners, let's try running it as a separate script.
This commit is contained in:
Lukas Klingsbo
2024-10-13 17:06:18 +02:00
committed by GitHub
parent 7d50bca78d
commit 05e908512d
2 changed files with 11 additions and 8 deletions

10
scripts/doc-setup.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
echo Checking python version:
python3 --version && python3 -c "import sys; sys.exit(0 if sys.version_info >= (3,8) else 2)" || (echo "Error: Python 3.8+ is required" && exit 1)
echo Installing required python modules:
python3 -m pip install -r "$MELOS_ROOT_PATH/doc/_sphinx/requirements.txt"
echo Installing dartdoc_json:
dart pub global activate dartdoc_json
echo Done.