build(scripts): include humans.txt in post-build step

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-05-30 15:22:15 +08:00
parent ee3616be5b
commit 95d62c800b
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8

View file

@ -13,7 +13,7 @@ fi
if [[ $SKIP_VENV_SETUP == "" ]] || [[ $CI == "" ]]; then if [[ $SKIP_VENV_SETUP == "" ]] || [[ $CI == "" ]]; then
pipenv install --ignore-pipfile --deploy --verbose pipenv install --ignore-pipfile --deploy --verbose
pipenv run -- mkdocs build -d "$TARGET_DIR" -f ${TARGET_BUILD_CONFIG} pipenv run mkdocs build -d "$TARGET_DIR" -f ${TARGET_BUILD_CONFIG}
else else
pip3 install -r requirements.txt --upgrade --user pip3 install -r requirements.txt --upgrade --user
mkdocs build -d "$TARGET_DIR" -f ${TARGET_BUILD_CONFIG} mkdocs build -d "$TARGET_DIR" -f ${TARGET_BUILD_CONFIG}
@ -23,5 +23,6 @@ mkdir "$TARGET_DIR/api"
git rev-parse HEAD > "$TARGET_DIR/api/commit" git rev-parse HEAD > "$TARGET_DIR/api/commit"
cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico" cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico"
cp markdown/.well-known "$TARGET_DIR/.well-known" -rv cp markdown/.well-known "$TARGET_DIR/.well-known" -rv
cp markdown/humans.txt "$TARGET_DIR/humans.txt" -v
set +xe set +xe