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