From b4bda1447abdddf35e498d5d792e30ec23034354 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 4 Sep 2019 21:23:01 +0900 Subject: [PATCH] Deploy an addons via CircleCI --- .circleci/config.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) 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: /.*/