mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-25 18:03:44 +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
|
# in case of triggered from hottub
|
||||||
- repo-sync: |
|
- repo-sync: |
|
||||||
cd tildeweb
|
cd tildeweb
|
||||||
env
|
|
||||||
|
|
||||||
git remote add hub https://github.com/ajhalili2006/tildeverse-web && git pull hub main
|
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
|
git remote add lab https://mau.dev/ajhalili2006/tildeverse-web && git pull lab main
|
||||||
|
@ -29,7 +28,13 @@ tasks:
|
||||||
- build: |
|
- build: |
|
||||||
cd tildeweb && pip3 install -r requirements.txt --user
|
cd tildeweb && pip3 install -r requirements.txt --user
|
||||||
export PATH="$PATH:$HOME/.local/bin"
|
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: |
|
- deploy: |
|
||||||
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
|
if [ "$BUILD_REASON" == "patchset" ] && [ "$BUILD_SUBMITTER" == "hub.sr.ht" ]; then
|
||||||
complete-build
|
complete-build
|
||||||
|
@ -45,3 +50,5 @@ tasks:
|
||||||
|
|
||||||
git push origin -o skip-ci
|
git push origin -o skip-ci
|
||||||
git remote set-url lab ssh://git@mau.dev/ajhalili2006/tildeverse-web && git push lab main
|
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