[Misc] Fix drone CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2021-10-23 20:15:44 +02:00
parent 6a73bdb74e
commit fd5019335d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 7 additions and 6 deletions

View File

@ -5,6 +5,7 @@ steps:
- name: build - name: build
image: silex/emacs:27-alpine image: silex/emacs:27-alpine
commands: commands:
- apk add git
- emacs --script export.el - emacs --script export.el
when: when:
branch: branch:

View File

@ -1,15 +1,15 @@
#!/usr/bin/emacs --script #!/usr/bin/env -S emacs -Q --script
(require 'package) (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-initialize)
(package-refresh-contents) (package-refresh-contents)
(package-install 'htmlize) (package-install 'htmlize)
(package-install 's)
(require 's)
(setq org-confirm-babel-evaluate nil (setq org-confirm-babel-evaluate nil
org-html-validation-link nil) org-html-validation-link nil)
(let* ((files (mapcar #'expand-file-name (let ((files (mapcar #'expand-file-name
(file-expand-wildcards "org/config/*.org")))) (file-expand-wildcards "org/config/*.org"))))
(mapc (lambda (file) (mapc (lambda (file)
(message (format "==========\nExporting %S\n==========" file)) (message (format "==========\nExporting %S\n==========" file))
(with-current-buffer (find-file file) (with-current-buffer (find-file file)