~adnano/adnano.co

adnano.co/.build.yml -rw-r--r-- 811 bytes
6918ed85Adnan Maolood Trustless society 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
environment:
  site: adnano.co
packages:
- go
- scdoc
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
    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