I use hut
to publish my website to sourcehut pages.
It can also add your ssh key to your sourcehut account.
sudo apt install hut
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.
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
.
$ 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.