aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-09-05 03:30:41 +0000
committerGitHub <noreply@github.com>2019-09-05 03:30:41 +0000
commit428805e66f993884643136dc2d8267c53bd81588 (patch)
tree630deab9c7db1ffd00ea205fa7f1f420da0de7cb /.circleci
parent763b24fe2114e10e8d040b4fe5b9fce22781de32 (diff)
parentb4bda1447abdddf35e498d5d792e30ec23034354 (diff)
Merge pull request #640 from ueokande/auto-deploy
Deploy an addon automatically
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml38
1 files changed, 37 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 46cf0a6..1294557 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -47,7 +47,7 @@ commands:
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
- name: Install npm wee
+ name: Install dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
@@ -77,6 +77,19 @@ jobs:
- run: npm run build
- 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:
version: 2
build_and_test:
@@ -86,3 +99,26 @@ workflows:
filters:
branches:
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: /.*/