ci(sourcehut): do some build artifacts trickery

This commit is contained in:
Andrei Jiroh Halili 2023-02-20 00:01:50 +08:00 committed by GitHub
parent 14ce92d007
commit d6103e62c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,6 @@ tasks:
# 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
@ -29,7 +28,13 @@ tasks:
- 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 -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
@ -45,3 +50,5 @@ tasks:
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