Table of contents
It really doesn’t get any easier than this… Hats off to the sourcehut team for building such a fantastic product! 🚀 Starting out with the docs I followed the quickstart guide over on the documentation.
Automatic deployments of a hugo site
.build.yml
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
environment:
site: blog.okt.wtf
repo: okt.srht.site
packages:
- hugo
tasks:
- build: |
cd $repo
hugo
- package: |
cd $repo
tar -C public -cvz . > ../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz
After setting up hugo, getting the automatic build happening via .build.yml
and deploying it to my sourcehut .site.
blog IN CNAME pages.sr.ht.
Custom subdomain
The only thing left to tackle was the domain DNS configuration, like everything else sourcehut makes it so easy it almost hurts. It was time to get a little more into some interesting and creative content.
My blog’s code lives here ~okt/okt.srht.site
Check out some of the cool projects hosted over at sourcehut
[Back to top]