website/bin/deploykit-srht.site.sh
Andrei Jiroh Halili 8b77e1e70f Update scripts to hell and back
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
2023-07-15 16:24:57 +00:00

11 lines
No EOL
273 B
Bash
Executable file

#!/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