Deploy an addons via CircleCI
This commit is contained in:
parent
f2b7599c70
commit
b4bda1447a
1 changed files with 37 additions and 1 deletions
|
@ -47,7 +47,7 @@ commands:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||||
- run:
|
- run:
|
||||||
name: Install npm wee
|
name: Install dependencies
|
||||||
command: npm install
|
command: npm install
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: dependency-cache-{{ checksum "package-lock.json" }}
|
key: dependency-cache-{{ checksum "package-lock.json" }}
|
||||||
|
@ -77,6 +77,19 @@ jobs:
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run test:e2e
|
- run: npm run test:e2e
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
executor:
|
||||||
|
name: default
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- setup_npm
|
||||||
|
- run: npm run package
|
||||||
|
- run:
|
||||||
|
name: Deploy to AMO
|
||||||
|
command: |
|
||||||
|
version=$(jq -r '.version' manifest.json)
|
||||||
|
./script/deploy vim-vixen@i-beam.org "$version" "vim-vixen-${version}.zip"
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
@ -86,3 +99,26 @@ workflows:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: /^greenkeeper\/.*/
|
ignore: /^greenkeeper\/.*/
|
||||||
|
deploy:
|
||||||
|
jobs:
|
||||||
|
- build:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
- e2e:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
- deploy:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
- e2e
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
|
Reference in a new issue