mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-10 03:39:38 +00:00
ci(sourcehut): do some build artifacts trickery
This commit is contained in:
parent
14ce92d007
commit
d6103e62c7
1 changed files with 9 additions and 2 deletions
11
.build.yml
11
.build.yml
|
@ -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
|
Loading…
Reference in a new issue