From fd5019335d68d2f67b45460f107d27cb1d55eca7 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 23 Oct 2021 20:15:44 +0200 Subject: [PATCH] [Misc] Fix drone CI --- .drone.yml | 1 + export.el | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index a74193e..6e47c52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,7 @@ steps: - name: build image: silex/emacs:27-alpine commands: + - apk add git - emacs --script export.el when: branch: diff --git a/export.el b/export.el index 085937e..4aef7a0 100755 --- a/export.el +++ b/export.el @@ -1,15 +1,15 @@ -#!/usr/bin/emacs --script +#!/usr/bin/env -S emacs -Q --script (require 'package) -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(require 'org) +(require 'ox-html) +(setq package-archives '(("melpa" . "https://melpa.org/packages/"))) (package-initialize) (package-refresh-contents) (package-install 'htmlize) -(package-install 's) -(require 's) (setq org-confirm-babel-evaluate nil org-html-validation-link nil) -(let* ((files (mapcar #'expand-file-name - (file-expand-wildcards "org/config/*.org")))) +(let ((files (mapcar #'expand-file-name + (file-expand-wildcards "org/config/*.org")))) (mapc (lambda (file) (message (format "==========\nExporting %S\n==========" file)) (with-current-buffer (find-file file)