From fdfdc4f3cb35e64ffdddefec85e5a3b70a8f125f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 22 Oct 2023 01:53:54 +0200 Subject: [PATCH] store build artifacts --- .gitlab-ci.yml | 16 +++++++++------- genfiles.el | 4 ++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f1b58d..bbd1ac1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,22 +8,24 @@ before_script: test: script: - - emacs --batch -Q --script genfiles.el - - cd doc; hugo + - emacs --batch -Q --script genfiles.el + - cd doc; hugo except: - - master + - master artifacts: paths: - doc/public + - org-cv-exports + when: always pages: script: - - emacs --batch -Q --script genfiles.el - - cd doc; hugo - - mv public/ ../public/ # Because I remain now in the doc folder + - emacs --batch -Q --script genfiles.el + - cd doc; hugo + - mv public/ ../public/ # Because I remain now in the doc folder artifacts: paths: - public only: - - master + - master diff --git a/genfiles.el b/genfiles.el index 7542d31..c89ab1c 100644 --- a/genfiles.el +++ b/genfiles.el @@ -1,6 +1,6 @@ (defvar cv-cwd default-directory "remember the current directory, find-file changes it") -(defvar cv-workdir "/tmp/org-cv-exports/") +(defvar cv-workdir (expand-file-name "org-cv-exports/")) (toggle-debug-on-error) (with-current-buffer (find-file-noselect "/tmp/install-org.el") (eval-buffer)) @@ -44,7 +44,7 @@ (copy-file (concat cv-cwd "doc/smile.png") cv-workdir t) (make-directory (concat cv-cwd "/doc/static/") t) (message "alta %s" (featurep 'ox-altacv)) -(export-latex 'moderncv "moderncv.org") (export-latex 'altacv "altacv.org") +(export-latex 'moderncv "moderncv.org") (export-latex 'awesomecv2 "awesomecv.org") (export-latex 'awesomecv "awesome-letter.org")