diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-01-10 00:10:24 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-01-10 00:10:24 +0300 |
commit | ba4b0bad6ac6adf465ca7e71dd9045f512f70579 (patch) | |
tree | 64c7008a1f5d53634afccb3f537a1dc5ec1cd8fb /.gitlab-ci.yml | |
parent | eaa23579b83a788b7c9512100b2ca349176ad87a (diff) |
Update deployment
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a8600a..feee21c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,27 +17,36 @@ Compile Firefox: - npm install - npm run build:firefox - sed -i -e "s/BUILD/${CI_PIPELINE_ID}/g" ./build/manifest.json + - if [ "${CI_COMMIT_REF_NAME}" != "stable" ] ; then sed -i -e "s/ncpasswords@mdns.eu/ncpasswordsdev@mdns.eu/g" ./build/manifest.json ; fi - mv build dist/firefox-extension artifacts: paths: - - ./dist + - ./dist/firefox-extension Compile Chrome: stage: compiling script: - npm install - npm run build:chrome - - sed -i -e "s/BUILD/${CI_PIPELINE_ID}/g" ./build/manifest.json + - sed -i -e "s/99999/${CI_PIPELINE_ID}/g" ./build/manifest.json - mv build dist/chrome-extension artifacts: paths: - - ./dist + - ./dist/chrome-extension + +Publish Stable Firefox: + stage: publishing + script: + - 'npx @wext/shipit firefox dist/firefox-extension' + environment: + name: Stable + only: + - tags -Publish Stable: +Publish Stable Chrome: stage: publishing script: - - 'npx shipit firefox dist/firefox-extension' - - 'npx shipit chrome dist/chrome-extension' + - 'npx @wext/shipit chrome dist/chrome-extension' environment: name: Stable only: |