-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
59 lines (51 loc) · 1.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:10.15.2
# Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
variables:
GIT_SUBMODULE_STRATEGY: recursive
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
stages:
- build
- publish
install:
stage: build
script:
- npm --version
- node --version
- npm install
build_zip:
stage: build
script:
- npm run build:pack
artifacts:
expire_in: '1 hour'
paths:
- web-ext-artifacts/d-chat-$CI_BUILD_TAG.zip
only:
- tags
publish:
image: inetprocess/gitlab-release
stage: publish
script:
- gitlab-release --message 'Extension zip:' web-ext-artifacts/d-chat-$CI_BUILD_TAG.zip
only:
- tags
pages:
stage: publish
script:
- npm run build:web
- rm -rf extension/lib/js/{webextensions-lib-configs,browser-polyfill.js}
- mv extension/* public
artifacts:
paths:
- public
only:
- master