Update scripts to hell and back

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-07-15 16:22:08 +00:00
parent f57b1b1670
commit 8b77e1e70f
6 changed files with 61 additions and 86 deletions

11
bin/deploykit-srht.site.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/env bash
if [[ $SOURCEHUT_PAGES_TOKEN == "" ]]; then
echo "missing SOURCEHUT_PAGES_TOKEN variable"
exit 1
fi
curl --oauth2-bearer "$SOURCEHUT_PAGES_TOKEN" \
-Fcontent=@site.tar.gz \
-Fprotocol=GEMINI \
https://pages.sr.ht/publish/username.srht.site