Skip to content

Commit

Permalink
Add deploy job to pipeline (#21)
Browse files Browse the repository at this point in the history
* deploy job only on master
  • Loading branch information
drazisil committed May 5, 2020
1 parent fd3d137 commit 73c71f1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
paths:
- out
- coverage
- package.json

build-windows:
executor: win/default
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -258,3 +282,9 @@ workflows:
- test-linux-without-git
- test-macos-without-git
- test-windows-without-git
- deploy:
requires:
- review
filters:
branches:
only: master
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ codecov
codecov-macos
codecov.exe
.DS_Store
.idea/*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 73c71f1

Please sign in to comment.