aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-03-25 10:17:42 +0000
committerYann Herklotz <git@yannherklotz.com>2022-03-25 10:17:42 +0000
commit0971e6b22febb37a718e13e15045cb7ce8e3ce3c (patch)
treec958e48b411c0cbd944f6faebdbfb470c300a8c5
parent1141cd590e291f6d11b507fbbe77368d72c6ed71 (diff)
downloadyannherklotz.com-0971e6b22febb37a718e13e15045cb7ce8e3ce3c.tar.gz
yannherklotz.com-0971e6b22febb37a718e13e15045cb7ce8e3ce3c.zip
Try and fix build
-rw-r--r--.build.yml2
-rw-r--r--deps.el9
-rw-r--r--publish.el7
3 files changed, 10 insertions, 8 deletions
diff --git a/.build.yml b/.build.yml
index 074eadd..92267f0 100644
--- a/.build.yml
+++ b/.build.yml
@@ -10,7 +10,7 @@ secrets:
tasks:
- build: |
cd yannherklotz.com
- emacs --batch --file content.org --load publish.el
+ emacs --batch --load deps.el --find-file content.org --load publish.el
hugo --minify
- deploy: |
cd yannherklotz.com
diff --git a/deps.el b/deps.el
new file mode 100644
index 0000000..c0ebd7c
--- /dev/null
+++ b/deps.el
@@ -0,0 +1,9 @@
+(require 'package)
+(package-initialize)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
+(package-refresh-contents)
+
+(package-install 'org)
+(package-install 'org-contrib)
+(package-install 'ox-hugo)
diff --git a/publish.el b/publish.el
index a790fe0..cdc7d35 100644
--- a/publish.el
+++ b/publish.el
@@ -1,12 +1,5 @@
(require 'package)
(package-initialize)
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
-(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
-(package-refresh-contents)
-
-(package-install 'org)
-(package-install 'org-contrib)
-(package-install 'ox-hugo)
(require 'org)
(require 'ox)