razzi.abuissa.net

Razzi's guide to hut

I use hut to publish my website to sourcehut pages.

It can also add your ssh key to your sourcehut account.

install

sudo apt install hut

log in

hut init

It’ll instruct you to go to https://meta.sr.ht/oauth2/personal-token where you’ll create a token, then paste it back into the command line.

publish to sourcehut pages

The command to publish is

hut pages publish -d razzi.abuissa.net <tarball>

but I put it in my Makefile so I can just make sourcehut.

upload ssh key to sourcehut

$ hut meta ssh-key create
Uploaded SSH public key xx:xx:xx

It will automatically find your public key in ~/.ssh, so there’s no need for a key argument.

source code

https://sr.ht/~emersion/hut/