~witcher/wiredspace.de

wiredspace.de/.build.yml -rw-r--r-- 1.1 KiB
0f610319witcher CI: Download openring as package a day 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
38
39
40
41
42
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
triggers:
  - action: email
    condition: failure
    to: witcher <witcher@wiredspace.de>
packages:
  - go
  - hugo
  - openring
  - rsync
  - hut
environment:
  site: witcher.srht.site
sources:
  - https://git.sr.ht/~witcher/wiredspace.de
  - https://git.sr.ht/~sircmpwn/openring
secrets:
  - c092acdc-a06b-4dc5-a1b2-7c7011f6145c
tasks:
  - build: |
      cd wiredspace.de
      /usr/local/bin/openring \
        -s https://sourcehut.org/blog/index.xml \
        -s https://drewdevault.com/feed.xml \
        -s https://emersion.fr/blog/rss.xml \
        -s https://lucumr.pocoo.org/feed.atom \
        < webring-in.template \
        > layouts/partials/webring-out.html
      hugo
  - deploy: |
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      cd wiredspace.de
      rsync -r public/ srht-deploy@wiredspace.de:/var/www/wiredspace/
  - build-srht: |
      cd wiredspace.de
      hugo --baseURL="https://witcher.srht.site/"
  - package: |
      cd wiredspace.de/public
      tar -cvz . > ../../site.tar.gz
  - upload: |
      hut pages publish -d $site site.tar.gz