CI: Fix emacs directory path

This commit is contained in:
Marcel Kapfer 2022-02-15 19:52:16 +01:00
parent 2151569e24
commit 5984dbcdd9
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,6 @@ build:
image: silex/emacs:27.2-alpine-ci image: silex/emacs:27.2-alpine-ci
stage: build stage: build
script: script:
- mv dot-emacs .emacs.d
- emacs -Q --script publish/publish.el - emacs -Q --script publish/publish.el
- apk add --no-cache rsync - apk add --no-cache rsync
- rsync --archive --verbose --chown=gitlab-ci:www-data --delete --progress -e"ssh -p "$SSH_PORT"" public/ "$SSH_USER"@mmk2410.org:/var/www/config.mmk2410.org/ - rsync --archive --verbose --chown=gitlab-ci:www-data --delete --progress -e"ssh -p "$SSH_PORT"" public/ "$SSH_USER"@mmk2410.org:/var/www/config.mmk2410.org/

View file

@ -22,7 +22,7 @@
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t) (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
(package-refresh-contents) (package-refresh-contents)
(package-install 'htmlize) (package-install 'htmlize)
(add-to-list 'load-path "~/.emacs.d/elpa") (add-to-list 'load-path "./elpa")
(require 'org) (require 'org)
(require 'ox-publish) (require 'ox-publish)
@ -32,7 +32,7 @@
(setq org-publish-project-alist (setq org-publish-project-alist
`(("dot-emacs:org" `(("dot-emacs:org"
:base-directory "~/.emacs.d" :base-directory "."
:publishing-directory ,mmk2410/dot-emacs-publish-publishing-dir :publishing-directory ,mmk2410/dot-emacs-publish-publishing-dir
:exclude ".*" :exclude ".*"
:include ("config.org") :include ("config.org")
@ -48,7 +48,7 @@
:html-validation-link nil :html-validation-link nil
) )
("dot-emacs:static" ("dot-emacs:static"
:base-directory "~/.emacs.d/publish/assets" :base-directory "./publish/assets"
:publishing-directory ,mmk2410/dot-emacs-publish-publishing-dir :publishing-directory ,mmk2410/dot-emacs-publish-publishing-dir
:base-extension "css\\|woff\\|woff2\\|ico" :base-extension "css\\|woff\\|woff2\\|ico"
:publishing-function org-publish-attachment :publishing-function org-publish-attachment