~adnano/adnano.co

3b0d3aa38fef133726f0293b1602b66fc4ef9923 — Adnan Maolood 17 days ago f56f162
Update build manifest
1 files changed, 7 insertions(+), 20 deletions(-)

M .build.yml
M .build.yml => .build.yml +7 -20
@@ 1,37 1,24 @@
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
environment:
  site: adnano.co
  domain: adnano.co
packages:
- go
- scdoc
- kiln
- gmnitohtml
- hut
sources:
- https://git.sr.ht/~adnano/kiln
- https://git.sr.ht/~adnano/mdtohtml
- https://git.sr.ht/~adnano/gmnitohtml
- https://git.sr.ht/~adnano/adnano.co
tasks:
- kiln: |
    cd kiln
    make
    sudo make install
- mdtohtml: |
    cd mdtohtml
    make
    sudo make install
- gmnitohtml: |
    cd gmnitohtml
    make
    sudo make install
- build: |
    cd $site
    cd $domain
    kiln build
- publish: |
    tar -C $site/public/gemini -cvz . > gemini.tar.gz
    tar -C $site/public/https -cvz . > https.tar.gz
    acurl -f https://pages.sr.ht/publish/$site \
      -Fcontent=@gemini.tar.gz \
      -Fprotocol=GEMINI
    acurl -f https://pages.sr.ht/publish/$site \
      -Fcontent=@https.tar.gz \
      -Fprotocol=HTTPS
    tar -C $domain/public/https -cz . | hut pages publish -p HTTPS -d $domain
    tar -C $domain/public/gemini -cz . | hut pages publish -p GEMINI -d $domain