Skip to content

Commit fdec73d

Browse files
author
Holger Brandl
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # build.gradle
2 parents 793f9c9 + b88ad5c commit fdec73d

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,4 @@ implementation 'com.github.holgerbrandl:kscript-annotations:1.2'
3131

3232

3333
print("1+1")
34-
35-
3634
```

release.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
3+
##
4+
## Release Steps For new Annotation Support Libary Version
5+
##
6+
7+
export KANNOT_HOME="/d/projects/misc/kscript-annotations";
8+
9+
trim() { while read -r line; do echo "$line"; done; }
10+
annot_version=$(grep '^version' ${KANNOT_HOME}/build.gradle | cut -f3 -d' ' | tr -d "'" | trim)
11+
12+
echo "new version is $annot_version"
13+
14+
### Do the github release
15+
## see https://github.com/aktau/github-release
16+
17+
#source /Users/brandl/archive/gh_token.sh
18+
source ~/archive/gh_token.sh
19+
export GITHUB_TOKEN=${GH_TOKEN}
20+
#echo $GITHUB_TOKEN
21+
22+
# make your tag and upload
23+
cd ${KANNOT_HOME}
24+
25+
## make sure we have not pending commits
26+
(git diff --ignore-submodules --exit-code && git tag "v${annot_version}") || echo "could not tag current branch"
27+
28+
## make sure all local changes become public
29+
git push --tags
30+
31+
# check the current tags and existing releases of the repo
32+
# binaries are located under $GOPATH/bin
33+
export PATH=~/go/bin/:$PATH
34+
35+
github-release info -u holgerbrandl -r kscript-annotations
36+
37+
# create a formal release
38+
github-release release \
39+
--user holgerbrandl \
40+
--repo kscript-annotations \
41+
--tag "v${annot_version}" \
42+
--name "v${annot_version}" \
43+
--description "See [NEWS.md](https://github.com/holgerbrandl/kscript/blob/master/NEWS.md) for changes."
44+
# --pre-release
45+
46+
47+
########################################################################
48+
### Build and publish the binary release to jcenter
49+
50+
gradle install
51+
52+
# careful with this one!
53+
gradle bintrayUpload

0 commit comments

Comments
 (0)