From 636723fc5d59ef9094b3bb02e7fe51723aff5ec5 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 13 May 2020 20:34:46 -0700 Subject: [PATCH] Add .gitlab-ci.yml to publish the package --- .gitlab-ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f90e0a4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +image: silex/emacs:26.3-alpine-dev + +stage: + - pre-package + - package + - deploy + +pre-package: + stage: pre-package + before_script: + - make clean + script: + - make + artifacts: + paths: + - *.tar + +package: + stage: package + dependencies: + - pre-package + before_script: + - rm -rf bin/ + - mkdir bin/ + script: > + emacs --batch --load package --funcall package-initialize + --eval "(let ((package-archive-upload-base "public/")) + (package-upload-file (car (sort (file-expand-wildcards \"*.tar\") \#'string>))))" + artifacts: + paths: + - public/ + +deploy: + stage: deploy + only: + - master + dependencies: + - package + script: echo "Done" + artifacts: + paths: + - public