cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

0c8cbcd9c05cc3a46aa649690968c915b9a80f4c

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2024-07-29T01:59:08Z

add custom README build steps
 .gitignore | 1 +
 build.sh   | 9 ++++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index fa6c7ff..b9090b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 .DS_Store
 .vscode
 public
+readme.html
diff --git a/build.sh b/build.sh
index ef760d5..c4d4f01 100755
--- a/build.sh
+++ b/build.sh
@@ -5,9 +5,12 @@ read answer
 
 if [ "$answer" != "${answer#[Yy]}" ] ; then
 	if [ "$ENV" == "prod" ]; then
-		echo "Environment = Production"              && \
-		rm -rf .build/*                              && \
-		emacs --script publish.el                    && \
+		echo "Environment = Production"                  && \
+		rm -rf .build/*                                  && \
+		emacs --script publish.el			 && \
+		pandoc -f org -t html readme.org  -o readme.html && \
+		hut git update --readme readme.html --repo          \
+		https://git.sr.ht/\~cyborg/cleberg.net           && \
 		rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/
 	else
 		echo "Environment = Development"             && \