Skip to content

Commit fb54751

Browse files
authored
circleCI release jar: use semver tagging
1 parent 9202a4e commit fb54751

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.circleci/config.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,28 @@ jobs:
118118
steps:
119119
- attach_workspace:
120120
at: /tmp/workspace
121+
- checkout
121122
- run:
122-
name: Get ghr
123+
name: Install ghr
123124
command: go get github.com/tcnksm/ghr
125+
- run:
126+
name: Install git-semver
127+
command: >
128+
git clone https://github.com/markchalloner/git-semver.git
129+
cd git-semver
130+
git checkout 2.0.2
131+
./install.sh
124132
- run:
125133
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
134+
command: |
135+
ghr
136+
-t $GITHUB_TOKEN
137+
-u scalableminds
138+
-r fossildb
139+
-c $(git rev-parse HEAD)
140+
-draft
141+
test-$(git semver next)
142+
/tmp/workspace/fossildb.jar
127143
128144
workflows:
129145
version: 2

0 commit comments

Comments
 (0)