image: alpine/latest
packages:
- go
oauth: pages.sr.ht/PAGES:RW
environment:
site: gemspace.cedricbonhomme.org
sources:
- https://git.sr.ht/~gsthnz/gssg
tasks:
- setup: |
cd gssg
make
sudo make install
- build: |
cd $site
/usr/local/bin/gssg
cd public/
tar -cvz . > ../site.tar.gz
- upload: |
cd $site
acurl -f https://pages.sr.ht/publish/$site \
-Fcontent=@site.tar.gz \
-Fprotocol=GEMINI