Skip to content

Commit 73c71f1

Browse files
authored
Add deploy job to pipeline (#21)
* deploy job only on master
1 parent fd3d137 commit 73c71f1

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.circleci/config.yml

+30
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
paths:
5353
- out
5454
- coverage
55+
- package.json
5556

5657
build-windows:
5758
executor: win/default
@@ -226,6 +227,29 @@ jobs:
226227

227228
# TODO: add test runs for each binary outside of a git project
228229

230+
deploy:
231+
docker:
232+
- image: circleci/node:10.16.3
233+
steps:
234+
- attach_workspace:
235+
at: .
236+
- run:
237+
name: Install GHR
238+
command: >
239+
wget
240+
https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
241+
242+
unzip ghr_v0.5.4_linux_amd64.zip
243+
- run:
244+
name: Package
245+
command: >
246+
RELEASE_TAG=v$(cat package.json | jq --raw-output
247+
.version)_$CIRCLE_BUILD_NUM
248+
249+
echo $RELEASE_TAG
250+
251+
./ghr -u codecov -r uploader --replace $RELEASE_TAG out
252+
229253
workflows:
230254
version: 2
231255

@@ -258,3 +282,9 @@ workflows:
258282
- test-linux-without-git
259283
- test-macos-without-git
260284
- test-windows-without-git
285+
- deploy:
286+
requires:
287+
- review
288+
filters:
289+
branches:
290+
only: master

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ codecov
6868
codecov-macos
6969
codecov.exe
7070
.DS_Store
71+
.idea/*

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![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)
44

5+
## This is a work in progress.
6+
57
## Steps to develop
68

79
- `make clean`

0 commit comments

Comments
 (0)