# sourcehut build: push docs/* to website
image: alpine/latest
packages:
- hugo
oauth: pages.sr.ht/PAGES:RW
environment:
repo: marky
tasks:
- package: |
cd $repo/docs/
hugo
cd public/
tar -cvz . > ../../../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$repo.nickbp.com -Fcontent=@site.tar.gz