Skip to content

Commit 9202a4e

Browse files
authored
add release_on_github step
1 parent fbaa57c commit 9202a4e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
- run:
3535
name: Build server
3636
command: docker-compose run sbt sbt assembly
37+
- persist_to_workspace:
38+
root: target/scala-2.12
39+
paths:
40+
- fossildb.jar
3741
- save_cache:
3842
key: cache-{{ .Branch }}
3943
paths:
@@ -108,6 +112,18 @@ jobs:
108112
command: >
109113
FOSSILDB_CLIENT_TAG=${CIRCLE_BRANCH}__${COMMON_BUILD_NUM}
110114
docker-compose run fossildb-health-check
115+
release_on_github:
116+
docker:
117+
- image: golang:1.9
118+
steps:
119+
- attach_workspace:
120+
at: /tmp/workspace
121+
- run:
122+
name: Get ghr
123+
command: go get github.com/tcnksm/ghr
124+
- run:
125+
name: Release jar on Github
126+
command: ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace test /tmp/workspace/fossildb.jar
111127

112128
workflows:
113129
version: 2
@@ -125,3 +141,7 @@ workflows:
125141
- set_common_build_number
126142
- build_and_push_db
127143
- build_and_push_client
144+
- release_on_github:
145+
requires:
146+
- build_and_push_db
147+
- smoketest

0 commit comments

Comments
 (0)