Skip to content

Commit bcfa6c0

Browse files
authored
Merge pull request #36 from scalableminds/golang
Create github release with github CLI instead of go tool
2 parents ca7403c + c9f6a9b commit bcfa6c0

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.circleci/config.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,10 @@ jobs:
7373
name: Release JAR on Github
7474
command: |
7575
if [ "${CIRCLE_BRANCH}" == "master" ]; then
76-
sudo add-apt-repository ppa:gophers/archive
77-
sudo apt-get update
78-
sudo apt-get install -y golang-1.10-go
79-
go get github.com/tcnksm/ghr
80-
81-
ghr \
82-
-t $GITHUB_TOKEN \
83-
-u scalableminds \
84-
-r fossildb \
85-
-c $(git rev-parse HEAD) \
86-
-b "Executable JAR of __FossilDB__" \
87-
$(cat $TARGET_DIR/version | tr -d [:space:]) \
88-
$TARGET_DIR/fossildb.jar
76+
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.deb
77+
sudo apt install ./gh_2.18.1_linux_amd64.deb
78+
TAG_NAME="$(cat $TARGET_DIR/version | tr -d [:space:])"
79+
gh release create $TAG_NAME -t "$TAG_NAME $(git log -1 --pretty=%B)" -R scalableminds/fossildb --target $(git rev-parse HEAD) -n "Executable JAR of __FossilDB__" $TARGET_DIR/fossildb.jar
8980
fi
9081
9182
workflows:

0 commit comments

Comments
 (0)