diff --git a/.circleci/config.yml b/.circleci/config.yml index 191940cd2..2a96b50c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,6 +52,7 @@ jobs: paths: - out - coverage + - package.json build-windows: executor: win/default @@ -226,6 +227,29 @@ jobs: # TODO: add test runs for each binary outside of a git project + deploy: + docker: + - image: circleci/node:10.16.3 + steps: + - attach_workspace: + at: . + - run: + name: Install GHR + command: > + wget + https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip + + unzip ghr_v0.5.4_linux_amd64.zip + - run: + name: Package + command: > + RELEASE_TAG=v$(cat package.json | jq --raw-output + .version)_$CIRCLE_BUILD_NUM + + echo $RELEASE_TAG + + ./ghr -u codecov -r uploader --replace $RELEASE_TAG out + workflows: version: 2 @@ -258,3 +282,9 @@ workflows: - test-linux-without-git - test-macos-without-git - test-windows-without-git + - deploy: + requires: + - review + filters: + branches: + only: master diff --git a/.gitignore b/.gitignore index 82e355130..fb8daa84b 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ codecov codecov-macos codecov.exe .DS_Store +.idea/* diff --git a/README.md b/README.md index 0c17e002e..d2f85cc94 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![CircleCI](https://circleci.com/gh/codecov/uploader.svg?style=shield&circle-token=def755bf76a1d8c36436c3115530c7eac7fa30e0)](https://circleci.com/gh/codecov/uploader) [![codecov](https://codecov.io/gh/codecov/uploader/branch/master/graph/badge.svg?token=X1gImxfIya)](https://codecov.io/gh/codecov/uploader) +## This is a work in progress. + ## Steps to develop - `make clean`