From d110c8c9e34f74b9c279de17548174dabb37cbb4 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 28 Jul 2024 20:59:08 -0500 Subject: 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" && \ -- cgit v1.2.3-70-g09d2