vc-p4/.gitlab-ci.yml

47 lines
811 B
YAML
Raw Normal View History

image: silex/emacs:26.3-alpine-dev
stages:
- pre-package
- package
- deploy
pre-package:
stage: pre-package
before_script:
2020-05-14 05:46:38 +02:00
- rm -rf dist
- make clean
script:
- make
2020-05-14 05:46:38 +02:00
after_script:
- mkdir -p dist
- mv *.tar dist
artifacts:
paths:
2020-05-14 05:46:38 +02:00
- dist/*.tar
package:
stage: package
dependencies:
- pre-package
before_script:
- rm -rf bin/
- mkdir bin/
script: >
emacs --batch --load package --funcall package-initialize
2020-05-14 05:53:36 +02:00
--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