aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-11 09:11:54 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-11 09:11:54 +0100
commit2ac521d9fd0b8104f6f3449732824e8ac275aef0 (patch)
tree8240fbfe60168557cb10de34034791f06b7b02fe
parent50213403334c1a0077df5066e25b819af5cf4f20 (diff)
downloadyannherklotz.com-2ac521d9fd0b8104f6f3449732824e8ac275aef0.tar.gz
yannherklotz.com-2ac521d9fd0b8104f6f3449732824e8ac275aef0.zip
Add emacs
-rw-r--r--.gitlab-ci.yml3
-rw-r--r--publish.el14
2 files changed, 17 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4fbf748..091ab15 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,10 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
+ before_script:
+ - sudo apt-get install emacs
script:
+ - emacs --batch --no-init --load publish.el
- hugo
artifacts:
paths:
diff --git a/publish.el b/publish.el
new file mode 100644
index 0000000..d1ef302
--- /dev/null
+++ b/publish.el
@@ -0,0 +1,14 @@
+(require 'package)
+(package-initialize)
+(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(package-refresh-contents)
+(package-install 'org-plus-contrib)
+(package-install 'ox-hugo)
+
+(require 'org)
+(require 'ox)
+(require 'ox-hugo)
+
+(find-file-literally "content.org")
+(org-hugo-export-wim-to-md :all-subtrees)