mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2025-05-08 14:43:10 +00:00
Update scripts to hell and back
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
f57b1b1670
commit
8b77e1e70f
6 changed files with 61 additions and 86 deletions
11
bin/deploykit-srht.site.sh
Executable file
11
bin/deploykit-srht.site.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue