vc-p4/.gitlab-ci.yml
Tom Willemse d181ea1e1f Rename deploy -> pages
It needs to be named pages to deploy to gitlab pages.
2020-05-13 22:08:21 -07:00

46 lines
847 B
YAML

image: silex/emacs:26.3-alpine-dev
stages:
- pre-package
- package
- deploy
pre-package:
stage: pre-package
before_script:
- rm -rf dist
- make clean
script:
- make
after_script:
- mkdir -p dist
- mv *.tar dist
artifacts:
paths:
- dist/*.tar
package:
stage: package
dependencies:
- pre-package
before_script:
- rm -rf bin/ public/
- mkdir bin/ public/
script: >
emacs --batch --load package --load package-x --funcall package-initialize
--eval "(let ((package-archive-upload-base \"public/\"))
(package-upload-file (car (sort (file-expand-wildcards \"dist/*.tar\") #'string>))))"
artifacts:
paths:
- public/
pages:
stage: deploy
only:
- master
dependencies:
- package
script: echo "Done"
artifacts:
paths:
- public