Skip to content

Commit f855893

Browse files
authored
Merge pull request #11 from scalableminds/gh-release
Release jar on github
2 parents fbaa57c + 12609d4 commit f855893

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.circleci/config.yml

Lines changed: 40 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,35 @@ 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+
- checkout
122+
- run:
123+
name: Install ghr
124+
command: go get github.com/tcnksm/ghr
125+
- run:
126+
name: Install git-semver
127+
command: |
128+
set -xe
129+
git clone https://github.com/markchalloner/git-semver.git
130+
cd git-semver
131+
git checkout 2.0.2
132+
./install.sh
133+
- run:
134+
name: Release jar on Github
135+
command: >
136+
ghr
137+
-t $GITHUB_TOKEN
138+
-u scalableminds
139+
-r fossildb
140+
-c $(git rev-parse HEAD)
141+
-b "executable jar of __fossildb__"
142+
$(git semver next)
143+
/tmp/workspace/fossildb.jar
111144
112145
workflows:
113146
version: 2
@@ -125,3 +158,10 @@ workflows:
125158
- set_common_build_number
126159
- build_and_push_db
127160
- build_and_push_client
161+
- release_on_github:
162+
branches:
163+
only:
164+
- master
165+
requires:
166+
- build_and_push_db
167+
- smoketest

0 commit comments

Comments
 (0)