mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-10 03:39:38 +00:00
Improve feature flag detection on builds
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
6adc266f17
commit
1a3b255aaf
1 changed files with 6 additions and 2 deletions
|
@ -8,9 +8,13 @@ FF_GENERATE_SOCIAL_CARDS=${FF_GENERATE_SOCIAL_CARDS:-"true"}
|
|||
|
||||
if [[ ! -d "$PWD/.venv" && $SKIP_VENV_SETUP == "" ]]; then
|
||||
python3 -m venv $PWD/.venv
|
||||
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
||||
$PWD/.venv/bin/mkdocs build -d $TARGET_DIR
|
||||
else
|
||||
pip3 install -r requirements.txt --upgrade
|
||||
mkdocs build -d $TARGET_DIR
|
||||
fi
|
||||
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
||||
$PWD/.venv/bin/mkdocs build -d $TARGET_DIR
|
||||
|
||||
mkdir "$TARGET_DIR/api"
|
||||
git rev-parse HEAD > "$TARGET_DIR/api/commit"
|
||||
|
||||
|
|
Loading…
Reference in a new issue