ci(builds.sr.ht): more chores over at buildscripts

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-10-07 11:38:26 +08:00
parent 3e4715f48f
commit d3d4c30b52
Signed by: ajhalili2006
GPG Key ID: 67BFC91B3DA12BE8
3 changed files with 5 additions and 7 deletions

View File

@ -39,9 +39,9 @@ tasks:
# our build script handles both the install and build stuff itself
export PATH="$PATH:$HOME/.local/bin"
pipenv install --ignore-pipfile --deploy
pipenv run build-tilde-ctrlc
pipenv run build-tilde-psflt
pipenv run build-tilde-dimensions
TILDE_PUBLIC_HTML_BASE=https://ctrl-c.club/~ajhalili2006/ TARGET_DIR=build/ctrl-c.club ./bin/build.sh mkdocs.tilde.yml
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.p.psf.lt TARGET_DIR=build/p.psf.lt ./bin/build.sh mkdocs.tilde.yml
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.dimension.sh TARGET_DIR=build/dimension.sh ./bin/build.sh mkdocs.tilde.yml
- generate-archive: |
cd web
tar -C build -cvz . -f tildeweb-prod-build.tar.gz

View File

@ -23,6 +23,4 @@ python_version = "3.11"
dev = "mkdocs serve --watch overrides --watch-theme --livereload"
build = "bash bin/build.sh"
build-staging = "bash bin/build.sh mkdocs.readthedocs.yml"
build-tilde-ctrlc = "TILDE_PUBLIC_HTML_BASE=https://ctrl-c.club/~ajhalili2006/ TARGET_DIR=build/ctrl-c.club bash bin/build.sh mkdocs.tilde.yml"
build-tilde-psflt = "TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.p.psf.lt/ TARGET_DIR=build/p.psf.lt bash bin/build.sh mkdocs.tilde.yml"
build-tilde-dimensions = "TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.dimension.sh TARGET_DIR=build/dimension.sh bash bin/build.sh mkdocs.tilde.yml"
build-tilde-ctrlc = "bash bin/build.sh mkdocs.tilde.yml"

View File

@ -12,7 +12,7 @@ if [[ ! -d "$TARGET_DIR" ]]; then
fi
if [[ $SKIP_VENV_SETUP == "" ]] || [[ $CI == "" ]]; then
pipenv install -r requirements.txt
pipenv install --ignore-pipfile --deploy --verbose
pipenv run -- mkdocs build -d "$TARGET_DIR" -f ${TARGET_BUILD_CONFIG}
else
pip3 install -r requirements.txt --upgrade --user