aboutsummaryrefslogtreecommitdiff
path: root/post.sh
diff options
context:
space:
mode:
Diffstat (limited to 'post.sh')
-rwxr-xr-xpost.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/post.sh b/post.sh
new file mode 100755
index 0000000..ca43302
--- /dev/null
+++ b/post.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+./build.sh
+tmpfile=$(mktemp)
+tar -C public/ -cvz . > $tmpfile
+curl --oauth2-bearer "$1" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site
+rm "$tmpfile"