~ianmjones/ianmjones.com

ref: 81846f00a41b65de05b851c03989e828d79b249a ianmjones.com/.build.yml -rw-r--r-- 946 bytes
81846f00Ian M. Jones Add channel name to NixOS build packages. a month 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
image: nixos/unstable
oauth: pages.sr.ht/PAGES:RW
packages:
  - nixos.kiln
  - nixos.gmnitohtml
environment:
  site: ianmjones.com
  alt_site: www.ianmjones.com
secrets:
  - d6dddce0-cce3-4ffd-ae12-e08687dc13ba
tasks:
  - build: |
      cd $site
      kiln build
  - package: |
      cd $site
      tar -C public.gmi -cvz . > ../gmi.tar.gz
      tar -C public.html -cvz . > ../html.tar.gz
  - upload-gmi: |
      acurl -f https://pages.sr.ht/publish/$site \
        -Fcontent=@gmi.tar.gz \
        -Fprotocol=GEMINI
      acurl -f https://pages.sr.ht/publish/$alt_site \
        -Fcontent=@gmi.tar.gz \
        -Fprotocol=GEMINI
  - upload-html: |
      acurl -f https://pages.sr.ht/publish/$site \
        -Fcontent=@html.tar.gz \
        -Fprotocol=HTTPS
      acurl -f https://pages.sr.ht/publish/$alt_site \
        -Fcontent=@html.tar.gz \
        -Fprotocol=HTTPS
triggers:
  - action: email
    condition: always
    to: ian@ianmjones.com