about summary refs log tree commit diff
path: root/.build.yml
blob: 922d358bcf574b879ad19c2eafb6a988c3754e2f (plain) (blame)
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
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
sources:
  - https://git.sr.ht/~sircmpwn/openring
  - https://git.envs.net/huyngo/haasdaiga
  - https://git.envs.net/huyngo/ravna
  - https://git.sr.ht/~huyngo/isanercent
  - https://git.sr.ht/~huyngo/web-cv
packages:
  - openring
  - hugo
  - mdbook
environment:
  site: xrvs.net
tasks:
- build: |
    for conlang in haasdaiga ravna isanercent;
    do
      cd $conlang
      mdbook build
      cd ..
    done
    cd $site
    ./create-webring.sh
    hugo --baseURL="https://xrvs.net"
- package: |
    for conlang in haasdaiga ravna isanercent;
    do
      mv "$conlang/book" "$site/public/$conlang"
    done
    mv web-cv "$site/public/cv"
    cd "$site/public"
    tar -cvz . > ../../site.tar.gz
- upload: |
    acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz