mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-22 00:13:40 +00:00
ci(builds.sr.ht): more chores over at buildscripts
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
parent
3e4715f48f
commit
d3d4c30b52
3 changed files with 5 additions and 7 deletions
|
@ -39,9 +39,9 @@ tasks:
|
||||||
# our build script handles both the install and build stuff itself
|
# our build script handles both the install and build stuff itself
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
pipenv install --ignore-pipfile --deploy
|
pipenv install --ignore-pipfile --deploy
|
||||||
pipenv run build-tilde-ctrlc
|
TILDE_PUBLIC_HTML_BASE=https://ctrl-c.club/~ajhalili2006/ TARGET_DIR=build/ctrl-c.club ./bin/build.sh mkdocs.tilde.yml
|
||||||
pipenv run build-tilde-psflt
|
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.p.psf.lt TARGET_DIR=build/p.psf.lt ./bin/build.sh mkdocs.tilde.yml
|
||||||
pipenv run build-tilde-dimensions
|
TILDE_PUBLIC_HTML_BASE=https://ajhalili2006.dimension.sh TARGET_DIR=build/dimension.sh ./bin/build.sh mkdocs.tilde.yml
|
||||||
- generate-archive: |
|
- generate-archive: |
|
||||||
cd web
|
cd web
|
||||||
tar -C build -cvz . -f tildeweb-prod-build.tar.gz
|
tar -C build -cvz . -f tildeweb-prod-build.tar.gz
|
||||||
|
|
4
Pipfile
4
Pipfile
|
@ -23,6 +23,4 @@ python_version = "3.11"
|
||||||
dev = "mkdocs serve --watch overrides --watch-theme --livereload"
|
dev = "mkdocs serve --watch overrides --watch-theme --livereload"
|
||||||
build = "bash bin/build.sh"
|
build = "bash bin/build.sh"
|
||||||
build-staging = "bash bin/build.sh mkdocs.readthedocs.yml"
|
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-ctrlc = "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"
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [[ ! -d "$TARGET_DIR" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SKIP_VENV_SETUP == "" ]] || [[ $CI == "" ]]; then
|
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}
|
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
|
||||||
|
|
Loading…
Reference in a new issue