summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-03-21 17:27:14 +0000
committerYann Herklotz <git@yannherklotz.com>2022-03-21 17:27:14 +0000
commit81f5fcb4b3a1d01751bc542c4966ca722d54a197 (patch)
tree58d82c5c9b1b4d3ac74271f167cf08d0db967f3b
parent1389c48356e14089a4d5523198061b300b134c02 (diff)
downloadymhg-notes-81f5fcb4b3a1d01751bc542c4966ca722d54a197.tar.gz
ymhg-notes-81f5fcb4b3a1d01751bc542c4966ca722d54a197.zip
Add Makefile and yaml build
-rw-r--r--.build.yml13
-rw-r--r--Makefile12
2 files changed, 25 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..4a94943
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,13 @@
+image: debian/testing
+packages:
+ - emacs-nox
+ - rsync
+ - gnuplot
+sources:
+ - https://git.sr.ht/~ymherklotz/ymhg-notes
+secrets:
+ - f1c07b45-32bd-4559-b370-28e59e4c11e1
+tasks:
+ - install-deps: make -C ymhg-notes install-deps
+ - build: make -C ymhg-notes build
+ - upload: make -C ymhg-notes upload
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a2b27ed
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+all: install-deps build upload
+
+install-deps:
+ emacs --batch --load packages.el
+
+build:
+ emacs --batch --load publish.el --funcall org-publish-all
+
+upload:
+ rsync -av public/ "notes@leika.ymhg.org:/var/www/notes"
+
+.PHONY: all build install-deps upload