aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-07-28 20:59:08 -0500
committerChristian Cleberg <hello@cleberg.net>2024-07-28 20:59:08 -0500
commitd110c8c9e34f74b9c279de17548174dabb37cbb4 (patch)
tree9a38f246af1b6e4f4171f5dda22f812f6418caa1
parent709727082bdc1f661d7cf81a5d12ee3f5d65b573 (diff)
downloadcleberg.net-d110c8c9e34f74b9c279de17548174dabb37cbb4.tar.gz
cleberg.net-d110c8c9e34f74b9c279de17548174dabb37cbb4.tar.bz2
cleberg.net-d110c8c9e34f74b9c279de17548174dabb37cbb4.zip
add custom README build steps
-rw-r--r--.gitignore1
-rwxr-xr-xbuild.sh9
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" && \