~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

ci(sourcehut): do some build artifacts trickery

Changed files
+9 -2
+9 -2
.build.yml
···
# in case of triggered from hottub
- repo-sync: |
cd tildeweb
-
env
git remote add hub https://github.com/ajhalili2006/tildeverse-web && git pull hub main
git remote add lab https://mau.dev/ajhalili2006/tildeverse-web && git pull lab main
···
- build: |
cd tildeweb && pip3 install -r requirements.txt --user
export PATH="$PATH:$HOME/.local/bin"
-
mkdocs build -d public -f mkdocs.yml && mkdocs build -d public_ctrl-c -f mkdocs.ctrl-c.yml
- deploy: |
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
complete-build
···
git push origin -o skip-ci
git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
···
# in case of triggered from hottub
- repo-sync: |
cd tildeweb
git remote add hub https://github.com/ajhalili2006/tildeverse-web && git pull hub main
git remote add lab https://mau.dev/ajhalili2006/tildeverse-web && git pull lab main
···
- build: |
cd tildeweb && pip3 install -r requirements.txt --user
export PATH="$PATH:$HOME/.local/bin"
+
+
mkdocs build -d public -f mkdocs.yml \
+
&& mkdocs build -d public_ctrl-c -f mkdocs.ctrl-c.yml \
+
&& mkdocs build -d public_pages.dev -f mkdocs.pages.dev.yml
+
- generate-archive: |
+
cd tildeweb
+
tar cvzf tildeweb-prod-build.tar.gz public public_ctrl-c public_pages.dev
- deploy: |
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
complete-build
···
git push origin -o skip-ci
git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
+
artifacts:
+
- tildeweb/tildeweb-prod-build.tar.gz