about summary refs log tree commit diff
path: root/.build.yml
blob: 99704dc21fa31cce9145cad57393583f4344fe81 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
sources:
  - https://git.envs.net/huyngo/haasdaiga
  - https://git.envs.net/huyngo/ravna
  - https://git.sr.ht/~huyngo/isanercent
  - https://git.sr.ht/~huyngo/djanzi
  - https://git.sr.ht/~huyngo/web-cv
  - https://git.sr.ht/~cnx/fead
packages:
  - hugo
  - mdbook
  - hut
  - git
environment:
  site: xrvs.net
tasks:
- patch: |
    cd fead
    git apply ../$site/fead.patch
- build: |
    for conlang in haasdaiga ravna isanercent djanzi;
    do
      cd $conlang
      mdbook build
      cd ..
    done
    cd $site
    ./create-webring.sh
    hugo --baseURL="https://xrvs.net"
    mv public dotnet
    hugo --baseURL="http://xrvs.geek"
    mv public dotgeek
- package: |
    for conlang in haasdaiga ravna isanercent djanzi;
    do
      cp -r "$conlang/book" "$site/dotnet/$conlang"
      cp -r "$conlang/book" "$site/dotgeek/$conlang"
    done
    cp -r web-cv "$site/dotnet/cv"
    cp -r web-cv "$site/dotgeek/cv"
    cd "$site/dotnet"
    tar -cvz . > ../../dotnet.tar.gz
    cd ../dotgeek
    tar -cvz . > ../../dotgeek.tar.gz
- upload: |
    hut pages publish -d $site dotnet.tar.gz
artifacts:
  - dotgeek.tar.gz