Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.gitlab-ci.yml - github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3ae86f5a800b5d82b3e6530751d8b020e92bc37 (plain)
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
stages:
- prepare
- compiling
- publishing

Install:
  stage: prepare
  script:
  - npm install
  - mkdir dist
  artifacts:
    paths:
    - ./node_modules

Compile Firefox:
  stage: compiling
  script:
  - npm install
  - npm run build:firefox
  - if [ "${CI_COMMIT_REF_NAME}" == "stable" ] ; then sed -i -e "s/-BUILD//g" ./build/manifest.json ; fi
  - if [ "${CI_COMMIT_REF_NAME}" != "stable" ] ; then sed -i -e "s/-BUILD/-build${CI_PIPELINE_ID}/g" ./build/manifest.json ; fi
  - mv build dist/firefox-extension
  artifacts:
    paths:
    - ./node_modules
    - ./dist

Compile Chrome:
  stage: compiling
  script:
  - npm run build:chrome
  - if [ "${CI_COMMIT_REF_NAME}" == "stable" ] ; then sed -i -e "s/-BUILD//g" ./build/manifest.json ; fi
  - if [ "${CI_COMMIT_REF_NAME}" != "stable" ] ; then sed -i -e "s/-BUILD/-build${CI_PIPELINE_ID}/g" ./build/manifest.json ; fi
  - mv build dist/chrome-extension
  artifacts:
    paths:
    - ./dist

Publish Stable:
  stage: publishing
  script:
    - 'npx shipit firefox dist/firefox-extension'
    - 'npx shipit chrome dist/chrome-extension'
  environment:
    name: Stable
  only:
    - tags