-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
45 lines (41 loc) · 1.21 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
image: node:12
before_script:
- apt-get update
- apt-get install zip
cache:
paths:
- node_modules/
build-beta:
stage: build
script:
- export
- npm ci
- npm run build
- node update-build-tags.js --branch=$CI_COMMIT_BRANCH --gitlabpath=$CI_PROJECT_PATH --jobname=$CI_JOB_NAME --versionpre=$CI_PIPELINE_IID
- mkdir archmage
- cp -r ./{system.json,template.json,assets,condition-maps,css,images,languages,licenses,module,scripts,templates} ./archmage
- mkdir ./archmage/packs; cp -r ./packs/dist ./archmage/packs/dist
- zip -q archmage.zip -r archmage
artifacts:
paths:
- archmage.zip
- system.json
only:
- beta
build-prod:
stage: build
script:
- export
- npm ci
- npm run build
- node update-build-tags.js --branch=$CI_COMMIT_BRANCH --gitlabpath=$CI_PROJECT_PATH --jobname=$CI_JOB_NAME --tag=$CI_COMMIT_TAG
- mkdir archmage
- cp -r ./{system.json,template.json,assets,condition-maps,css,images,languages,licenses,module,scripts,templates} ./archmage
- mkdir ./archmage/packs; cp -r ./packs/dist ./archmage/packs/dist
- zip -q archmage.zip -r archmage
artifacts:
paths:
- archmage.zip
- system.json
only:
- tags