]> git.xn--bdkaa.com Git - xn--bdkaa.com.git/commitdiff
Add sr.ht deploy script
authorEvgenii Akentev <i@ak3n.com>
Fri, 28 Jan 2022 19:13:58 +0000 (00:13 +0500)
committerEvgenii Akentev <i@ak3n.com>
Fri, 28 Jan 2022 19:13:58 +0000 (00:13 +0500)
.gitignore
deploy.sh [new file with mode: 0755]

index 592a6ea272e66a567b4ee039bd161598df564eab..b4199fa77a2119c6eb055b1a73dada30e3c67f02 100644 (file)
@@ -1,2 +1,3 @@
 .DS_Store
 public
+site.tar.gz
\ No newline at end of file
diff --git a/deploy.sh b/deploy.sh
new file mode 100755 (executable)
index 0000000..f7a6b8b
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+hugo
+
+tar -C public -cvz . > site.tar.gz
+
+curl --oauth2-bearer $FOR_BLOG_POSTING \
+    -Fcontent=@site.tar.gz \
+    https://pages.sr.ht/publish/ak3n.srht.site
\ No newline at end of file