Tom Willemse
1f3ea1cd05
- ‘stage’ doesn’t exist as a top-level key. - It looks like the ‘paths’ in ‘artifacts’ can’t start with a glob.
42 lines
731 B
YAML
42 lines
731 B
YAML
image: silex/emacs:26.3-alpine-dev
|
|
|
|
stages:
|
|
- 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
|