From be456fa6b7a9a44b95be51995c98ecfee6b13a30 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 19 Feb 2024 10:26:27 -0500 Subject: make: Add automation for publishing release docs. --- Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index dece665..1c08890 100644 --- a/Makefile.am +++ b/Makefile.am @@ -126,7 +126,13 @@ CLEANFILES = \ $(GOBJECTS) \ $(TESTS:tests/%.scm=%.log) -publish: distcheck +publish_tarball: distcheck gpg --sign --detach-sign --armor --yes haunt-$(VERSION).tar.gz && \ scp haunt-$(VERSION).tar.gz haunt-$(VERSION).tar.gz.asc \ - publish@dthompson.us:/var/www/files/haunt/ + publish@dthompson.us:/var/www/files/releases/haunt/ + +publish_docs: html + scp -r doc/haunt.html publish@dthompson.us:/var/www/files/docs/haunt/$(VERSION) && \ + ssh publish@dthompson.us ln -sfn /var/www/files/docs/haunt/$(VERSION) /var/www/files/docs/haunt/latest + +publish: publish_tarball publish_docs -- cgit v1.2.3