diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-09-04 21:23:01 +0900 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-09-05 03:15:32 +0000 |
commit | b4bda1447abdddf35e498d5d792e30ec23034354 (patch) | |
tree | 630deab9c7db1ffd00ea205fa7f1f420da0de7cb | |
parent | f2b7599c70bc6383781d2847d18686c215a53e81 (diff) |
Deploy an addons via CircleCI
-rw-r--r-- | .circleci/config.yml | 38 |
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: /.*/ |