added build for publishing

This commit is contained in:
Morgan McMillian 2021-02-20 17:50:01 -08:00
parent 0e06d04293
commit 16155bb2b9

16
.build.yml Normal file
View file

@ -0,0 +1,16 @@
image: alpine/latest
packages:
- hugo
oauth: pages.sr.ht/PAGES:RW
environment:
site: thrrgilag.net
triggers:
- action: email
condition: always
to: Morgan McMillian <thrrgilag@dreamfall.space>
tasks:
- package: |
cd $site
tar -C public -cvz . > ../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz